Skip to content

almaraz333/driveSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Drive File Downloader

This Go project utilizes the Google Drive API and Go routines to download your Google Drive files and replicate the directory structure locally. The script will download the files to the same location where the script is located.

Features

  • Download Google Drive files locally while preserving the directory structure.
  • Utilizes Go routines for concurrent downloads, improving performance.
  • Recursively traverses through directories to maintain the structure.

Getting Started

To get started with this project, follow the steps below:

Prerequisites

  • Install Go on your system. You can download it from the official Go website.

Installation

  1. Clone the repository:
git clone https://github.com/almaraz333/driveSync.git
  1. Navigate to the project directory:
cd driveSync
  1. Install the project dependencies:
go mod download

Configuration

Before running the script, you need to set up Google Drive API credentials. Follow these steps:

  1. Visit the Google Cloud Console.

  2. Create a new project or select an existing one.

  3. Enable the Google Drive API for your project.

  4. Create credentials:

    • Go to "Credentials" under the "APIs & Services" section.
    • Click "Create Credentials" and select "OAuth client ID".
    • Choose "Desktop app" as the application type.
    • Note down the generated client ID and client secret.
  5. Copy the credentials.json file from the Google Cloud Console into the project's root directory.

Usage

To run the script, use the following command:

go run main.go

Contributing

Contributions are welcome! If you encounter any bugs or have suggestions for improvements, please create an issue or submit a pull request.

License

This project is licensed under the MIT License.

Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages