Browse Source

Prevent "special" sub-folders on file servers from being scanned during unpacking.

pull/108/head
shypike 12 years ago
parent
commit
823816ddc4
  1. 2
      sabnzbd/newsunpack.py

2
sabnzbd/newsunpack.py

@ -1370,11 +1370,13 @@ def build_filelists(workdir, workdir_complete, check_rar=True):
if workdir_complete:
for root, dirs, files in os.walk(workdir_complete):
for _file in files:
if '.AppleDouble' not in root and '.DS_Store' not in root:
filelist.append(os.path.join(root, _file))
if workdir and not filelist:
for root, dirs, files in os.walk(workdir):
for _file in files:
if '.AppleDouble' not in root and '.DS_Store' not in root:
filelist.append(os.path.join(root, _file))
if check_rar:

Loading…
Cancel
Save