import os
def walk(dir):
r = [os.path.join(dir, name) for name in os.listdir(dir) if os.path.isfile(os.path.join(dir, name))]
print(r)# your code goes here
aW1wb3J0IG9zCgpkZWYgd2FsayhkaXIpOgogICAgciA9IFtvcy5wYXRoLmpvaW4oZGlyLCBuYW1lKSBmb3IgbmFtZSBpbiBvcy5saXN0ZGlyKGRpcikgaWYgb3MucGF0aC5pc2ZpbGUob3MucGF0aC5qb2luKGRpciwgbmFtZSkpXQogICAgcHJpbnQocikjIHlvdXIgY29kZSBnb2VzIGhlcmU=