Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- def w(co=None):#w(r'C:\Users\kubas\Desktop\PYTHON') raw zeby dzialalo
- if co is None:
- co = os.getcwd()
- for root, dirs, files in os.walk(co):
- for dirname in dirs:
- print(dirname,"/")
- for filename in files:
- print(filename)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement