filter out zipped files (caused errors)

This commit is contained in:
Rob Weber 2012-05-22 21:16:01 -05:00
parent bc9cc7d345
commit ce7a2acb90

View File

@ -48,14 +48,14 @@ def walk(path):
current_dirs, current_files = [], [] current_dirs, current_files = [], []
for x in listdir(current_path, extra_metadata=True): for x in listdir(current_path, extra_metadata=True):
if not x['file'].startswith("zip://"):
if x['filetype'] == 'directory':
if x['filetype'] == 'directory': current_dirs.append(x['file'])
current_dirs.append(x['file']) else:
else: current_files.append(x['file'])
current_files.append(x['file'])
except IndexError: except IndexError: