Basic utils using https://github.com/OneDrive/onedrive-sdk-python
OneDrive API documentation: https://dev.onedrive.com
- Create an app in https://apps.dev.microsoft.com/
- Get Client ID and Secret from this app and set them as environment variables
CLIENT_ID
andCLIENT_SECRET
- Add URL for redirect
http://localhost:8080/
export CLIENT_ID=??????
export CLIENT_SECRET=??????
Eg. python list.py "/Parent Folder/Subfolder"
- path to file containing list of folders on OneDrive
- each folder on new line
- ? can be number from 1 to N
- ? = 0 is indefinitely
- ? can be
true
or1
to do not ask about agreement with some action
- Download all folders, subfoldres and files for given path
- Check duplicates for given path
- List folders for given path