Skip to content

Commit

Permalink
Use a relative path because a path cannot start with a drive letter (#65
Browse files Browse the repository at this point in the history
)
  • Loading branch information
yjoer authored Oct 16, 2024
1 parent 09b6299 commit 3c730b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jupyterlab_quickopen/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ async def should_hide(self, entry, excludes):
-------
bool
"""
relpath = os.path.relpath(entry.path)

return (
any(fnmatch(entry.name, glob) for glob in excludes)
or not self.contents_manager.should_list(entry.name)
or (
await ensure_async(self.contents_manager.is_hidden(entry.path))
await ensure_async(self.contents_manager.is_hidden(relpath))
and not self.contents_manager.allow_hidden
)
)
Expand Down

0 comments on commit 3c730b0

Please sign in to comment.