Skip to content

Commit e848165

Browse files
committed
sty: clarity suggestions from @mgxd
See #2962 (review)
1 parent b1eb3ee commit e848165

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,9 +1027,9 @@ def s3tolocal(self, s3path, bkt):
10271027
local_directory = str(self.inputs.local_directory)
10281028
bucket_path = str(self.inputs.bucket_path)
10291029
template = str(self.inputs.template)
1030-
if not os.path.split(local_directory)[1] == '':
1030+
if not os.path.basename(local_directory) == '':
10311031
local_directory += '/'
1032-
if not os.path.split(bucket_path)[1] == '':
1032+
if not os.path.basename(bucket_path) == '':
10331033
bucket_path += '/'
10341034
if template[0] == '/':
10351035
template = template[1:]

0 commit comments

Comments
 (0)