I'm still learning Python, so this is learn-by-making... I had some problem with OneDrive, and used on-demand function to save space on my laptop. I was not sure if all changes had been uploaded to OneDrive, so not loose any files, I simply renamed the folder and synced a new version. There were some problems that I did not forsee. Many file, but not all, had "stream error" or i/o error when comparing the folders. To remove all "stream errors" but keep ok files, I decided to open them and calculate an md5 hash of the first 1kB. If successful, the file should be ok, if i/o error, the remove...
-
Notifications
You must be signed in to change notification settings - Fork 0
Job76/file_io_error
About
Python script to test and remove defective files from old OneDrive installation
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published