add file check for _build_file_paths() function

This commit is contained in:
jromnoa
2021-06-15 13:55:10 -07:00
parent cac210f25b
commit fffff75479
+2 -1
View File
@@ -121,7 +121,8 @@ def _build_file_paths(path_to_files, files_in_path):
for file_in_path in files_in_path:
complete_file_path = os.path.join(path_to_files, file_in_path)
parsed_file_paths.append(complete_file_path)
if os.path.isfile(complete_file_path):
parsed_file_paths.append(complete_file_path)
return parsed_file_paths