gdrive

module
v0.0.0-...-e79a8cb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2020 License: MIT

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

$ go build -o ./bin/gdrive ./cmd/gdrive

For example

$ rm -f ./bin/list.json
$ gdrive download --list_file './bin/list.json' --src 'google-drive-folder-or-file-id' --dst 'local-folder-path'

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL