Skip to content

Commit 8192d55

Browse files
author
zhouwenhua02
committed
Fixes AsyncContentsManager#exists
1 parent 450010e commit 8192d55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server/services/contents/manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ async def exists(self, path):
628628
exists : bool
629629
Whether the target exists.
630630
"""
631-
return await (ensure_async(self.file_exists(path)) or ensure_async(self.dir_exists(path)))
631+
return await ensure_async(self.file_exists(path)) or await ensure_async(self.dir_exists(path))
632632

633633
async def get(self, path, content=True, type=None, format=None):
634634
"""Get a file or directory model."""

0 commit comments

Comments
 (0)