Skip to content

Commit

Permalink
Merge pull request #6540 from krassowski/patch-2
Browse files Browse the repository at this point in the history
Normalise `os_path`
  • Loading branch information
echarles authored Sep 25, 2022
2 parents 8e5bd6b + 73bf317 commit 4fe291e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebook/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def to_os_path(path, root=''):
parts = path.strip('/').split('/')
parts = [p for p in parts if p != ''] # remove duplicate splits
path = os.path.join(root, *parts)
return path
return os.path.normpath(path)

def to_api_path(os_path, root=''):
"""Convert a filesystem path to an API path
Expand Down

0 comments on commit 4fe291e

Please sign in to comment.