Created
February 13, 2021 19:11
-
-
Save ahmedshahriar/163870829afd2518f37c95540c7cacc2 to your computer and use it in GitHub Desktop.
This will print the folders and files inside a directory
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
# input | |
import os | |
for dirname, _, filenames in os.walk('/files/input'): | |
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