Skip to content
Snippets Groups Projects
Commit 5e4e29c4 authored by Campbell Barton's avatar Campbell Barton
Browse files

Correct mistake skipping hidden dirs

parent 6f8d64cc
Branches
Tags
No related merge requests found
......@@ -115,9 +115,8 @@ class FindReelsEDL(Operator):
def media_file_walker(path):
ext_check = bpy.path.extensions_movie | bpy.path.extensions_audio
for dirpath, dirnames, filenames in os.walk(path):
# skip '.svn'
if dirpath.startswith("."):
continue
# skip '.git'
dirnames[:] = [d for d in dirnames if not d.startswith(".")]
for filename in filenames:
fileonly, ext = os.path.splitext(filename)
ext_lower = ext.lower()
......
......@@ -517,9 +517,8 @@ def load_config(cfg_name=DEMO_CFG):
def blend_dict_items(path):
for dirpath, dirnames, filenames in os.walk(path):
# skip '.svn'
if dirpath.startswith("."):
continue
# skip '.git'
dirnames[:] = [d for d in dirnames if not d.startswith(".")]
for filename in filenames:
if filename.lower().endswith(".blend"):
filepath = os.path.join(dirpath, filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment