Skip to content

Commit e6e8d40

Browse files
Restore forward slash behavior
1 parent b70ce83 commit e6e8d40

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nibabel/filename_parser.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ def _stringify_path(filepath_or_buffer: FileSpec) -> str:
3838
Adapted from:
3939
https://github.com/pandas-dev/pandas/blob/325dd68/pandas/io/common.py#L131-L160
4040
"""
41-
full_path = pathlib.Path(filepath_or_buffer).expanduser()
42-
return str(full_path)
41+
return pathlib.Path(filepath_or_buffer).expanduser().as_posix()
4342

4443

4544
def types_filenames(

0 commit comments

Comments
 (0)