JohannesWiesner / demetrius

A repository for finding and copying files while preserving their folder structure
MIT License
2 stars 0 forks source link

Put file corruption check in own function #5

Closed JohannesWiesner closed 7 months ago

JohannesWiesner commented 1 year ago

Currently, there's a very rough check for file corruption using os.path.exists(). Would probably be better to put that in a separate function (e.g. after finding all files, run over the list and check if files are corrupt).

JohannesWiesner commented 1 year ago

Should be done even before adapting the destination directories because if some files are completely excluded it does not make sense to adapt a directory for them that should not even exist