Commit afa18c94 authored by Jason R. Coombs's avatar Jason R. Coombs

Also override extend to check paths for safety.

parent 9d5d875b
......@@ -212,6 +212,9 @@ class FileList(_FileList):
if self._safe_path(path):
self.files.append(path)
def extend(self, paths):
self.files.extend(filter(self._safe_path, paths))
def _safe_path(self, path):
if not PY3:
return os.path.exists(path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment