Created
July 19, 2022 00:02
-
-
Save James-Firth/10ac7b640892d8f320fe7361b62cadb5 to your computer and use it in GitHub Desktop.
Print paths and filenames
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
import os | |
for dirname, _, filenames in os.walk('.'): | |
for filename in filenames: | |
print(os.path.join(dirname, filename)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment