Skip to content

Python script to test and remove defective files from old OneDrive installation

Notifications You must be signed in to change notification settings

Job76/file_io_error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

file_io_error

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...

About

Python script to test and remove defective files from old OneDrive installation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages