Skip to content

Instantly share code, notes, and snippets.

@mlai-demo
Created April 18, 2020 16:08
Show Gist options
  • Save mlai-demo/20a35d5cb9006dedf92426fe910b8976 to your computer and use it in GitHub Desktop.
Save mlai-demo/20a35d5cb9006dedf92426fe910b8976 to your computer and use it in GitHub Desktop.
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