Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dPath = r"C:randompath\\"
- def patearFicheros(Path):
- filesARR = []
- for path, subdirs, files in os.walk(Path):
- # Gen. camina hasta el final del arbol
- # subdir y files son arrays dado el path
- # path passa a ser path+elprimer subdir a la siguiente vuelta
- # possible comprarar files de un mismo directorio usando el array "files"
- # print(path,"\n",subdirs,"\n",files,"\n")
- for name in files:
- filesARR += [name]
- return filesARR
- fileArray = patearFicheros(dPath)
Add Comment
Please, Sign In to add comment