Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xuwaters/gdrive
A command line tool that download files recursively from Google Drive.
https://github.com/xuwaters/gdrive
Last synced: 5 days ago
JSON representation
A command line tool that download files recursively from Google Drive.
- Host: GitHub
- URL: https://github.com/xuwaters/gdrive
- Owner: xuwaters
- License: mit
- Created: 2020-01-23T21:58:20.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-25T14:49:07.000Z (almost 5 years ago)
- Last Synced: 2024-06-21T08:27:46.854Z (5 months ago)
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GDrive
GDrive is a command line tool that can download files recursively from Google Drive.
```
Usage:
gdrive download [flags]Flags:
--cred_file string credentials.json file for Google Drive API from gcloud console
https://console.developers.google.com/apis/library/drive.googleapis.com
--dst string Destination directory
-h, --help help for download
--list_file string list of files to be downloaded, will be created automatically
--src string Source fileId in google drive
--token_file string token file that stores access and refresh tokens, and is created automatically```
## Build
```bash
$ go build -o ./bin/gdrive ./cmd/gdrive
```## For example
```bash
$ rm -f ./bin/list.json
$ gdrive download --list_file './bin/list.json' --src 'google-drive-folder-or-file-id' --dst 'local-folder-path'
```