"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "beb03ec6c56e12b87fd94b97a36221b976b65651"
Unverified Commit 3e00fa43 authored by Michael Poutre's avatar Michael Poutre
Browse files

feat: Exclude .git when retrieving filename lists

In the future could support user provided excluded dirs via config file
parent d1968470
...@@ -166,7 +166,7 @@ def get_filename_list_(folder_name): ...@@ -166,7 +166,7 @@ def get_filename_list_(folder_name):
folders = folder_names_and_paths[folder_name] folders = folder_names_and_paths[folder_name]
output_folders = {} output_folders = {}
for x in folders[0]: for x in folders[0]:
files, folders_all = recursive_search(x) files, folders_all = recursive_search(x, excluded_dir_names=[".git"])
output_list.update(filter_files_extensions(files, folders[1])) output_list.update(filter_files_extensions(files, folders[1]))
output_folders = {**output_folders, **folders_all} output_folders = {**output_folders, **folders_all}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment