We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b7cafb commit fa7cf85Copy full SHA for fa7cf85
src/compas_fab/utilities/filesystem.py
@@ -27,7 +27,7 @@ def list_files_in_directory(directory, fullpath=False, extensions=[]):
27
item_fullpath = os.path.join(directory, item)
28
if os.path.isfile(item_fullpath):
29
if len(extensions):
30
- found = reduce(lambda x, y: x or y, [item.endswith(ext) for ext in extensions])
+ found = any([item.endswith(ext) for ext in extensions])
31
if not found:
32
continue
33
if fullpath:
0 commit comments