Skip to content

Commit c451de3

Browse files
Backport PR #886 on branch 1.x (Normalize os_path) (#888)
Co-authored-by: martinRenou <[email protected]>
1 parent 6a6e703 commit c451de3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def to_os_path(path, root=""):
111111
parts = path.strip("/").split("/")
112112
parts = [p for p in parts if p != ""] # remove duplicate splits
113113
path = os.path.join(root, *parts)
114-
return path
114+
return os.path.normpath(path)
115115

116116

117117
def to_api_path(os_path, root=""):

0 commit comments

Comments
 (0)