Skip to content

Commit 3164602

Browse files
authored
Merge pull request #2143 from lukassnoek/master
ENH: Speed up S3DataGrabber using prefix arg
2 parents a84f10f + e762c3b commit 3164602

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.zenodo.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,11 @@
518518
"affiliation": "MIT, HMS",
519519
"name": "Ghosh, Satrajit",
520520
"orcid": "0000-0002-5312-6729"
521+
},
522+
{
523+
"affiliation": "University of Amsterdam",
524+
"name": "Lukas Snoek",
525+
"orcid": "0000-0001-8972-204X"
521526
}
522527
],
523528
"keywords": [

nipype/interfaces/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ def _list_outputs(self):
869869
# get list of all files in s3 bucket
870870
conn = boto.connect_s3(anon=self.inputs.anon)
871871
bkt = conn.get_bucket(self.inputs.bucket)
872-
bkt_files = list(k.key for k in bkt.list())
872+
bkt_files = list(k.key for k in bkt.list(prefix=self.inputs.bucket_path))
873873

874874
# keys are outfields, args are template args for the outfield
875875
for key, args in list(self.inputs.template_args.items()):

0 commit comments

Comments
 (0)