fix so that files like .keep are not imported

This commit is contained in:
cktricky
2018-09-20 09:57:03 -04:00
committed by Kenneth Toler
parent f54427dd18
commit d2075c3943
2 changed files with 3 additions and 2 deletions

View File

@@ -12,5 +12,6 @@ def list_all_files(directory):
and not (os.path.basename(dirpath).startswith('__')) ):
for file in filenames:
list_path_name = dirpath.split('/')
array.append(".".join(list_path_name) + "." + os.path.splitext(file)[0])
if not (file.startswith('.')):
array.append(".".join(list_path_name) + "." + os.path.splitext(file)[0])
return array