Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SingularReza/drive-folder-copier
A simple script to copy folders to Team Drives/Shared Drives in Google Drive
https://github.com/SingularReza/drive-folder-copier
Last synced: about 2 months ago
JSON representation
A simple script to copy folders to Team Drives/Shared Drives in Google Drive
- Host: GitHub
- URL: https://github.com/SingularReza/drive-folder-copier
- Owner: SingularReza
- Created: 2019-09-14T11:41:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T06:15:31.000Z (about 2 years ago)
- Last Synced: 2024-08-08T00:43:52.881Z (5 months ago)
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 11
- Watchers: 1
- Forks: 6
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- project-awesome - SingularReza/drive-folder-copier - A simple script to copy folders to Team Drives/Shared Drives in Google Drive (Python)
README
# drive folder copier
Google drive doesn't allow you to copy folders from your main drive to a team drive/shared drive. This is a hassle when you have to move folders with a lot of smaller sub folders in it. This simple python scripts does that easily for you.
## How to Use
* pip install -r requirements.txt (needs python version > 2.6) ps: seems like the requirements list is fucked up and listed all the global packages, please use your own discretion* Place your GDrive API credentials or use the included hacky quickstart one
* This script takes 3 inputs:
* folderid - The id of the folder whose contents you want to copy over
* destid - The id of the destination folder
* driveid - The destination folder's team drive idIt will copy all the contents of the folder with the given folder id and and paste them in the destination folder.
Note: The last part of the folder url will be its id
For a folder with url ```https://drive.google.com/drive/folders/0B_Hy5UChYJu0T2JsVFFyTnM1YTg```, its id will be ```0B_Hy5UChYJu0T2JsVFFyTnM1YTg```