I have a lot of raster files (600+) in directories that I need copy into a new location (including their directory structure). Is there a way to track the status of the copying using shutil.copytree()? Normally with files I would use the code below, but not sure how to do the same with shutil.copytree():
for currentFolder, subFolder, fileNames in os.walk(sourceFolder):for i in fileNames:if i.endswith(".img"):print "copying {}".format(i)shutil.copy(os.path.join(currentFolder,i), outPutFolder)