I'm trying to print the pathnames of every file and its subfolders in a folder
This is the code I have so far:
def traverse(path, d):
for item in os.listdir(path):
item = os.path.join(path, d)
try:
traverse(path,d)
except:
print(path)