Bundlebuilder list_files: Better error handling #635
Don't fail on trailing slash of the directory name
This commit is contained in:
parent
720401606d
commit
a7daf73fae
@ -40,6 +40,8 @@ IGNORE_FILES = ['.gitignore', 'MANIFEST', '*.pyc', '*~', '*.bak', 'pseudo.po']
|
||||
def list_files(base_dir, ignore_dirs=None, ignore_files=None):
|
||||
result = []
|
||||
|
||||
base_dir = os.path.abspath(base_dir)
|
||||
|
||||
for root, dirs, files in os.walk(base_dir):
|
||||
if ignore_files:
|
||||
for pattern in ignore_files:
|
||||
|
Loading…
Reference in New Issue
Block a user