We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
os_path
1 parent 8e5bd6b commit 73bf317Copy full SHA for 73bf317
notebook/utils.py
@@ -253,7 +253,7 @@ def to_os_path(path, root=''):
253
parts = path.strip('/').split('/')
254
parts = [p for p in parts if p != ''] # remove duplicate splits
255
path = os.path.join(root, *parts)
256
- return path
+ return os.path.normpath(path)
257
258
def to_api_path(os_path, root=''):
259
"""Convert a filesystem path to an API path
0 commit comments