Skip to content

Commit

Permalink
Update count_files.py (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-ho authored Apr 19, 2024
1 parent 99f00a3 commit a4340b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/count_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ def count_files_recursive(directory):
total_file_count = 0
# 현재 디렉토리의 내용을 나열합니다.
for entry in os.scandir(directory):
if entry.is_file():
# 파일이면 카운트를 증가합니다.
if entry.is_file() and entry.name.endswith('.md'):
# .md 확장자를 가진 파일이면 카운트를 증가합니다.
total_file_count += 1
elif entry.is_dir():
# 디렉토리(폴더)면 재귀적으로 이 함수를 호출합니다.
Expand Down

0 comments on commit a4340b2

Please sign in to comment.