drive-bulk-uploader

0.1.2-dev • Public • Published

Drive Bulk Uploader

Massive upload tool from local fs to Google Drive. Recreate local file structure on Google Drive.

Prerequisites

Node.js

Node.js must be installed on your machine.

Generate Google Drive Crendentials

You'll need some Drive API credentials in order to use this tool :

  • Use this wizard to create or select a project in the Google Developers Console and automatically turn on the API. Click Continue, then Go to credentials.
  • At the top of the page, select the OAuth consent screen tab. Select an Email address, enter a Product name if not already set, and click the Save button.
  • Select the Credentials tab, click the Create credentials button and select OAuth client ID.
  • Select the application type Other, enter the name "Drive Bulk Uploader", and click the Create button.
  • Click OK to dismiss the resulting dialog.
  • Click the file_download (Download JSON) button to the right of the client ID.

Move this file anywhere but keep the path : we'll use it to run the upload.

Installation

Simply run npm install --global drive-bulk-uploader

Usage

Example :

C:\Users\John>drive-bulk-uploader path/to/folder --credentials path/to/secret.json

The first time you use the tool, it will open an authentication tab for Google Authorization process.

Troubleshooting

If you encouter issue with authentication (or want to use another account), simply remove the cached refresh token in ~/.credentials/token.json.

Readme

Keywords

none

Package Sidebar

Install

npm i drive-bulk-uploader

Weekly Downloads

0

Version

0.1.2-dev

License

none

Last publish

Collaborators

  • oza94