capture files for windows

This commit is contained in:
Xavier Yao 2017-03-24 22:24:49 +08:00 committed by GitHub
parent f712b23492
commit 6bf020916c

View File

@ -11,7 +11,7 @@ def get_filelist(xmlstring):
for cnt in r.findall('s3:Contents', ns):
key = cnt.find('s3:Key', ns)
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
size = cnt.find('s3:Size', ns).text