GithubHelp home page GithubHelp logo

thanhtoan1196 / gdrive-copy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ericyd/gdrive-copy

0.0 1.0 0.0 3.38 MB

Web app to copy a Google Drive folder

Home Page: https://script.google.com/macros/s/AKfycbxbGNGajrxv-HbX2sVY2OTu7yj9VvxlOMOeQblZFuq7rYm7uyo/exec

License: MIT License

JavaScript 64.52% TypeScript 29.53% CSS 3.09% HTML 2.86%

gdrive-copy's Introduction

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.

This project is not associated with Google in any way.

To launch app: https://script.google.com/macros/s/AKfycbxbGNGajrxv-HbX2sVY2OTu7yj9VvxlOMOeQblZFuq7rYm7uyo/exec

Unable to sign in

If you are having issues signing in to the app, please try one of these options:

  1. Use a different browser
  2. Use an incognito/private window
  3. Clear your cookies and cache (Ctrl+Shift+Delete is a shortcut on Windows)

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. Select copying options
  4. 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

Please see the Privacy Policy.

This app does not store any data relating to your account or Google Drive contents.

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, check the appropriate box on the Options page
  • 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"

Deploying app

Requirements

  • Node version 8

Note: some build commands use commands which may not be available on standard Windows command line terminals.

Steps

  1. Clone repo: git clone [email protected]:ericyd/gdrive-copy.git
  2. Install dependencies: cd gdrive-copy && npm i
  3. Install clasp: npm i -g @google/clasp
  4. If needed, create a new clasp webapp project. See clasp documentation for more details. Use the clasp.sample.json as a template if needed.
  5. Login to Google Apps Script: clasp login
  6. Make changes locally if desired
  7. Build the app: npm run build:prod
  8. Push files to Apps Script project: clasp push
  9. Deploy: clasp deploy

References

Bugs? Questions?

Please open an issue on Github.

Project maintenance

This project is not updated very frequently. 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

gdrive-copy's People

Contributors

ericyd avatar fossamagna avatar

Watchers

Toan Tran avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.