Lights999 / gdrive-copy

Web app to copy a Google Drive folder

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Drive Copy Folder

This is a Google Drive Web app hosted at the Chrome Web Store. This app will recursively copy all contents and sub-folders within a Google Drive folder. As long as you have viewing rights on a folder, you can copy it in its entirety to your own Google Drive. The folder will be placed in your Google Drive, and you can move it from there.

To launch app: click "Visit Website" button at top of window in the Chrome Web Store.

Usage

  1. Select your folder with the Google Picker, or paste a folder URL with Ctrl-C
  2. Choose a name for the new folder
  3. Click "Copy Folder". When the copy begins, you will be alerted that you can close the window.

In addition, the app user will become the owner of the new folder and all sub-folders and contents. This makes it especially handy for making a new copy of shared information when someone leaves an organization.

Privacy

This app does not expose your files in any way. The copying takes place exclusively through Google Drive, meaning that no one except the user running the app will have access to the copied files. The only exception to this is if a user copies sharing permissions, in which case collaborators will be able to see the new files just like before.

Notes

  • This app performs best in Google Chrome or Chromium.
  • This app requires several permissions to run. The app needs to run offline so that you can close the window while the copying completes. You can view the source code on the Github page, listed below, to review the app and launch your own copy of the app if security is a concern.
  • If you'd like to copy sharing permissions from the original folder, select "Yes" for Copy Sharing Permissions
  • By default the folder will copy to the same location as the original folder. You can copy it to the root directory by selecting "Root directory" under "Copy folder to"

Bugs? Questions?

Please open an issue on Github.

Project maintenance

This project is no longer being actively developed. I will try to keep it updated to remain functional with any changes to the Drive API, but I have a limited amount of time and other projects which I would like to focus on.

I welcome contributions and I will gladly review any pull requests.

If you are inclined to contribute to this project, here are a few areas which need attention:

  1. Fix the long-standing bug where the copying will fail to resume, presumably due to exceeding a Google Apps quota.
  2. Add a procedure to catch and re-process files that error out during the copying process. Currently they are just logged and then ignored, but ideally they would be tried again.
  3. Make the account switcher and login process more robust to ensure that people don't get locked out of the app, or are forced to use it with only one account
  4. Add integration for Google Drive so that this script could be added into the context menu for Google Drive folders and accessed directly from Drive, rather than having to navigate to a separate app
  5. General codebase cleanup and refactoring

About

Web app to copy a Google Drive folder

License:GNU General Public License v2.0


Languages

Language:JavaScript 69.4%Language:HTML 19.8%Language:CSS 10.8%