mirror of
https://github.com/robweber/xbmcbackup.git
synced 2024-11-14 20:35:48 +01:00
filter out zipped files (caused errors)
This commit is contained in:
parent
bc9cc7d345
commit
ce7a2acb90
@ -48,14 +48,14 @@ def walk(path):
|
||||
current_dirs, current_files = [], []
|
||||
|
||||
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:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user