Skip to content

Commit 3c730b0

Browse files
authored
Use a relative path because a path cannot start with a drive letter (#65)
1 parent 09b6299 commit 3c730b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jupyterlab_quickopen/handler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ async def should_hide(self, entry, excludes):
3636
-------
3737
bool
3838
"""
39+
relpath = os.path.relpath(entry.path)
40+
3941
return (
4042
any(fnmatch(entry.name, glob) for glob in excludes)
4143
or not self.contents_manager.should_list(entry.name)
4244
or (
43-
await ensure_async(self.contents_manager.is_hidden(entry.path))
45+
await ensure_async(self.contents_manager.is_hidden(relpath))
4446
and not self.contents_manager.allow_hidden
4547
)
4648
)

0 commit comments

Comments
 (0)