diff --git a/jupyter_server/services/contents/manager.py b/jupyter_server/services/contents/manager.py index e45be5f4ed..029966fe4b 100644 --- a/jupyter_server/services/contents/manager.py +++ b/jupyter_server/services/contents/manager.py @@ -628,7 +628,7 @@ async def exists(self, path): exists : bool Whether the target exists. """ - return await (ensure_async(self.file_exists(path)) or ensure_async(self.dir_exists(path))) + return await ensure_async(self.file_exists(path)) or await ensure_async(self.dir_exists(path)) async def get(self, path, content=True, type=None, format=None): """Get a file or directory model."""