Skip to content

Instantly share code, notes, and snippets.

@abdulhalim-cu
Created November 10, 2017 15:14
Show Gist options
  • Save abdulhalim-cu/ff3249290aeb99624c3c9b819bdeea92 to your computer and use it in GitHub Desktop.
Save abdulhalim-cu/ff3249290aeb99624c3c9b819bdeea92 to your computer and use it in GitHub Desktop.
import os
for folderName, subfolders, filenames in os.walk('C:\\delicious'):
print('The current folder is ' + folderName)
for subfolder in subfolders:
print('SUBFOLDER OF ' + folderName + ': ' + subfolder)
for filename in filenames:
print('FILE INSIDE ' + folderName + ': '+ filename)
print('')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment