Created
April 18, 2020 16:08
-
-
Save mlai-demo/20a35d5cb9006dedf92426fe910b8976 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
counter = 0 | |
file_list = [] | |
for dirname, _, filenames in os.walk(file_dir): | |
for filename in filenames: | |
if filename[-5:]==".json": | |
file_list.append(os.path.join(dirname, filename)) | |
file_list.sort() | |
total_files = len(file_list); total_files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment