Created
September 23, 2020 09:21
-
-
Save MRsoymilk/8bdc873a413092340c12ca38315111d7 to your computer and use it in GitHub Desktop.
python tools
This file contains hidden or 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
| import os | |
| def iterate_over_files(path): | |
| for filepath, dirnames, filenames in os.walk(path): | |
| for filename in filenames: | |
| print(os.path.join(filepath, filename)) | |
| iterate_over_files('/tmp') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment