In a Python project, at some point we copy data with shutil.copy2
and shutil.copytree
and we have seen after a while that some files are corrupted, but we are not sure if this is the Python copy or other stuff that corrupted it.
Then the question, since I could not find in shutil documentation (https://docs.python.org/3/library/shutil.html) a clear statement saying in case of error there is an exception, especially in case of corrupted copy. Anyone knows if there is somewhere this is confirmed?