Skip to content

arindampal-0/gdown-cli-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GDown

Google Drive Folder Downloader, Rust CLI

Description

Downloading a complete folder from google drive triggers creation of an archive of the folder first, which takes ages. So, this cli tool can be used to download a complete folder one file at a time without creating an archive.

This is rust implementation of the gdown project which is written in Typescript.

Setup

cargo run

Create a new project in google cloud console, enable the google drive api for your google cloud project. Now create a service account under credentials section. For this service account, create and download a new json key, name it credentials.json and put it in the root directory.

Make sure that the drive scope are as follows:

Just put the credentials.json file in the project root and the bearer token will be automatically fetched from the google auth server, and it will be used for further requests.

After that add the google drive file id you want to download into the file_id variable in main.rs file. Then you can run the application to download the file.

Todo

  • connect to google drive api
  • auth using service account
  • auth using oauth
  • get file details from file id
  • download a file
  • get file list from folder drive id
  • download all files in a folder
  • download a folder recursively
  • create a cli application
  • run on separate threads

About

google drive folder download, rust cli application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages