Skip to content

Commit d857121

Browse files
committed
print message when ignore folder
1 parent 71327db commit d857121

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hooks/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,10 @@ def list_all_files(root_dir) -> list[str]:
274274
for file in os.listdir(root_dir):
275275
file_path = os.path.join(root_dir, file)
276276

277-
if os.path.isdir(file_path) and not file_path.endswith('_'):
277+
if os.path.isdir(file_path):
278+
if file_path.endswith('_'):
279+
logger.debug('Ignored folder ' + str(file_path), server)
280+
continue
278281
# 遍历子文件夹
279282
_files_in_a_folder.extend(list_all_files(file_path))
280283
if os.path.isfile(file_path) and (file_path.endswith('.yaml') or file_path.endswith('.yml')):

0 commit comments

Comments
 (0)