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.
1 parent 891e462 commit b70ce83Copy full SHA for b70ce83
nibabel/filename_parser.py
@@ -38,7 +38,8 @@ def _stringify_path(filepath_or_buffer: FileSpec) -> str:
38
Adapted from:
39
https://github.com/pandas-dev/pandas/blob/325dd68/pandas/io/common.py#L131-L160
40
"""
41
- return str(pathlib.Path(filepath_or_buffer).expanduser())
+ full_path = pathlib.Path(filepath_or_buffer).expanduser()
42
+ return str(full_path)
43
44
45
def types_filenames(
0 commit comments