Advertisement
Dsibee

Untitled

Jul 29th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. import os
  2.  
  3. files = []
  4.  
  5. for (dirpaths, dirnames, filenames) in os.walk(os.getcwd()):
  6. files.extend(filenames)
  7. break
  8.  
  9. for file in files:
  10. print(file)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement