Merge pull request #9 from xavieryao/patch-1

capture files for windows
This commit is contained in:
bigeagle 2017-03-24 23:49:38 +08:00 committed by GitHub
commit 1b37eddbb3

View File

@ -11,7 +11,7 @@ def get_filelist(xmlstring):
for cnt in r.findall('s3:Contents', ns): for cnt in r.findall('s3:Contents', ns):
key = cnt.find('s3:Key', ns) key = cnt.find('s3:Key', ns)
fname = key.text fname = key.text
if fname.endswith('/') or not (fname.startswith('linux') or fname.startswith('mac')): if fname.endswith('/') or not (fname.startswith('linux') or fname.startswith('mac') or fname.startswith('windows')):
continue continue
size = cnt.find('s3:Size', ns).text size = cnt.find('s3:Size', ns).text