Skip to content

Instantly share code, notes, and snippets.

@misraX
Last active May 7, 2017 03:28
Show Gist options
  • Save misraX/e54fa35d4eb4dda829f38b8362c36027 to your computer and use it in GitHub Desktop.
Save misraX/e54fa35d4eb4dda829f38b8362c36027 to your computer and use it in GitHub Desktop.
# coding: utf-8
import os
base_dir = os.walk("/dir_path")
for root, directory, files in base_dir:
for filename in files:
filepath = os.path.join(root, filename)
print (filepath)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment