Skip to content

A simple script to copy folders to Team Drives/Shared Drives in Google Drive

Notifications You must be signed in to change notification settings

SingularReza/drive-folder-copier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 id
    

    It 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

About

A simple script to copy folders to Team Drives/Shared Drives in Google Drive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages