Correct mistake skipping hidden dirs
This commit is contained in:
parent
6f8d64cc75
commit
5e4e29c468
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue