Ubuntu 版本:14.04.5 LTS.
gdrive 是一个用于与 Google Drive 交互的命令行实用程序。
我已使用特定用户进行了初始化gdrive(https://github.com/prasmussen/gdrive )。例如gdrive about返回其信息。
我安装的方式gdrive:
$ go get github.com/prasmussen/gdrive
$ gopath=$(go env | grep 'GOPATH' | cut -d "=" -f 2 | tr -d '"')
$ echo 'export PATH=$PATH:$gopath/bin' >> ~/.profile
$ source .profile
$ gdrive about # This line authenticates the user only once on the same node.
Authentication needed
Go to the following url in your browser:
https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=...e=state
Enter verification code:
Run Code Online (Sandbox Code Playgroud)
gdrive about
User: userName userSurname, <e-mail@gmail.com>
Used: 6.5 GB
Free: 9.6 GB
Total: 16.1 GB
Max upload size: 5.2 TB
Run Code Online (Sandbox Code Playgroud)
我想gdrive使用全新的用户电子邮件地址再次重新初始化/重新身份验证。
[问]有什么方法可以更改使用其他电子邮件地址的用户信息吗?
如果我删除gdrive并重新安装它是否可以解决?
小智 3
gdrive help about将输出:
Google drive metadata, quota usage
gdrive [global] about [options]
global:
-c, --config <configDir> Application path, default: /home/banyhong/.gdrive
--refresh-token <refreshToken> Oauth refresh token used to get access token (for advanced users)
--access-token <accessToken> Oauth access token, only recommended for short-lived requests because of short lifetime (for advanced users)
options:
--bytes Show size in bytes
Run Code Online (Sandbox Code Playgroud)
清理身份验证数据的最简单方法是rm -rf ~/.gdrive。