Skip to content

Commit ddf6973

Browse files
committed
"/path/to/folder/" should be treated the same way as "/path/to/folder"
1 parent 7905f89 commit ddf6973

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nipype/utils/filemanip.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ def split_filename(fname):
7272
"""
7373

7474
special_extensions = [".nii.gz", ".tar.gz"]
75+
76+
if fname and fname.endswith(os.path.sep):
77+
fname = fname[:-1]
7578

7679
pth, fname = os.path.split(fname)
7780

0 commit comments

Comments
 (0)