From 3604fb5ec5174ba9e38f2dee6d52e80f5f40c322 Mon Sep 17 00:00:00 2001 From: Mahendra Paipuri <44365948+mahendrapaipuri@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:18:59 +0200 Subject: [PATCH] fix: Remove unnecessary copy method overload in MetaManager * Correct `sync` arg to `True` in `MetaManagerShared` for `exists` method --- jupyterfs/metamanager.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/jupyterfs/metamanager.py b/jupyterfs/metamanager.py index 303c6d7..28d7055 100644 --- a/jupyterfs/metamanager.py +++ b/jupyterfs/metamanager.py @@ -150,7 +150,7 @@ def root_dir(self): is_hidden = path_first_arg("is_hidden", False, sync=True) dir_exists = path_first_arg("dir_exists", False, sync=True) file_exists = path_kwarg("file_exists", "", False, sync=True) - exists = path_first_arg("exists", False, sync=False) + exists = path_first_arg("exists", False, sync=True) save = path_second_arg("save", "model", True, sync=True) rename = path_old_new("rename", False, sync=True) @@ -170,9 +170,7 @@ class SyncMetaManager(MetaManagerShared, ContentsManager): ... class MetaManager(MetaManagerShared, AsyncContentsManager): - async def copy(self, from_path, to_path=None): - return super(MetaManagerShared, self).copy(from_path=from_path, to_path=to_path) - + is_hidden = path_first_arg("is_hidden", False, sync=False) dir_exists = path_first_arg("dir_exists", False, sync=False) file_exists = path_kwarg("file_exists", "", False, sync=False)