Commit 8d049782 authored by Jairo Correa's avatar Jairo Correa
Browse files

Allow all extensions if extension list is empty

parent 3fcab0c6
...@@ -146,7 +146,7 @@ def recursive_search(directory, excluded_dir_names=None): ...@@ -146,7 +146,7 @@ def recursive_search(directory, excluded_dir_names=None):
return result, dirs return result, dirs
def filter_files_extensions(files, extensions): def filter_files_extensions(files, extensions):
return sorted(list(filter(lambda a: os.path.splitext(a)[-1].lower() in extensions, files))) return sorted(list(filter(lambda a: os.path.splitext(a)[-1].lower() in extensions or len(extensions) == 0, files)))
......
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