Advertisement
Guest User

asdasd

a guest
Jan 21st, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. import os
  2.  
  3. def w(co=None):#w(r'C:\Users\kubas\Desktop\PYTHON') raw zeby dzialalo
  4.    if co is None:
  5.        co = os.getcwd()
  6.    for root, dirs, files in os.walk(co):
  7.        for dirname in dirs:
  8.            print(dirname,"/")
  9.        for filename in files:
  10.            print(filename)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement