Mount a google drive with fuse
|
%!s(int64=7) %!d(string=hai) anos | |
---|---|---|
src | %!s(int64=7) %!d(string=hai) anos | |
.gitignore | %!s(int64=7) %!d(string=hai) anos | |
Makefile | %!s(int64=7) %!d(string=hai) anos | |
README.md | %!s(int64=7) %!d(string=hai) anos | |
env.sh | %!s(int64=7) %!d(string=hai) anos |
07-05-2017
Mount a google drive in a folder
Usage:
gdrivemount [-d] [-v] destination_folder
Setup Google client secrets:
https://console.developers.google.com/apis/credentials
As of Google drive guidance:
Turn on the Drive API
- Use this wizard to create or select a project in the Google Developers Console and automatically turn on the API. Click Continue, then Go to credentials.
- On the Add credentials to your project page, click the Cancel button.
- At the top of the page, select the OAuth consent screen tab. Select an Email address, enter a Product name if not already set, and click the Save button.
- Select the Credentials tab, click the Create credentials button and select OAuth client ID.
- Select the application type Other, enter the name "Drive API Quickstart", and click the Create button.
- Click OK to dismiss the resulting dialog.
- Click the file_download (Download JSON) button to the right of the client ID.
Copy the downloaded JSON file to home directory as: $HOME/.gdrivemount/client_secret.json
Improve caching to refresh and save inodes