Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

program deletes cloud storage if empty local folder found on first sync #119

Open
magnessk opened this issue Feb 19, 2019 · 2 comments
Open

Comments

@magnessk
Copy link

Hi,
When reinstalling the new version, I left an empty onedrive folder in my home directory, which I believe caused the complete emptying of my onedrive cloud storage. I was able to recover all data by restoring it from the cloud recycle bin, but it certainly gave me a shock! perhaps include a rule that the program cannot delete anything on the first sync? or for a certain time period, to ensure that files arent accidentally deleted?

Thank you so much for this program, and have a great day!!!

@magnessk magnessk changed the title program deletes cloud storage if empty local folder found on startup program deletes cloud storage if empty local folder found on first sync Feb 19, 2019
@derrix060
Copy link

The framework requires a confirmation when you set a driver to an existing dir already: https://github.com/derrix060/onedriveClient/blob/master/onedrive_client/od_pref.py#L331

click.confirm('Syncing with directory "%s"? Be careful!! If this directory was cleaned '
                     'recently, all your files will be deleted from cloud. Type Ctrl + C to '
                     'abort the operation. Do you want to continue?' % local_root):

@magnessk
Copy link
Author

magnessk commented Feb 20, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants