Skip to content

A command line tool that download files recursively from Google Drive.

License

Notifications You must be signed in to change notification settings

xuwaters/gdrive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

A command line tool that download files recursively from Google Drive.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published