Lists and downloads files from google drive. It can easily filter files on date and find a specific sub-folder to iterate through.
0.2+ runs on Node 4+ only. It can run on older Node.js through Babel.
As an alternative, install the 0.1 version range. It functions on older versions of Node.
You can find info on creating credentials at the github page for googleauth, the module handling the auth-stuff.
export GOOGLEAUTH_CLIENT=<api key>.apps.googleusercontent.com
export GOOGLEAUTH_SECRET=<secret key>
google-drive-downloader <command>
If the program is run without a command or with an invalid command, it will show
a help-message. This can also be shown by adding --help
, which will also show
the available options for individual commands (eg.
google-drive-downloader list-files --help
)
... ls <path> [options...]
The path
parameter is the path for which to list files. To list the files in
the root folder, run google-drive-downloader ls /
.
The path-matching is case-sensitive.
--modified-after
/-m
: json date, it will only return files modified after this date.
... get-all <path> [options...]
The path
parameter is the path for which to download files. To download the
files in the root folder, run google-drive-downloader ls /
.
--modified-after
/-m
: json date, it will only return files modified after this date.--output-dir
/-o
: The folder to download to. The default is the current folder.