Correct mistake skipping hidden dirs

This commit is contained in:
Campbell Barton 2017-08-23 15:40:52 +10:00
parent 6f8d64cc75
commit 5e4e29c468
2 changed files with 4 additions and 6 deletions

View File

@ -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()

View File

@ -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)