def walk(dir):
for name in os.listdir(dir):
path = os.path.join(dir, name)
if os.path.isfile(path):
print(path)
else:
walk(path)
ZGVmIHdhbGsoZGlyKToKIGZvciBuYW1lIGluIG9zLmxpc3RkaXIoZGlyKToKIAlwYXRoID0gb3MucGF0aC5qb2luKGRpciwgbmFtZSkKIAlpZiBvcy5wYXRoLmlzZmlsZShwYXRoKToKIAkJcHJpbnQocGF0aCkKIAllbHNlOgogCQl3YWxrKHBhdGgp