You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gdrivefs/resources/README.rst
+54-56Lines changed: 54 additions & 56 deletions
Original file line number
Diff line number
Diff line change
@@ -5,30 +5,15 @@
5
5
GDriveFS is an innovative *FUSE* wrapper for *Google Drive*.
6
6
7
7
8
-
------------
9
-
Design goals
10
-
------------
8
+
--------------
9
+
Latest Changes
10
+
--------------
11
+
12
+
- Though you can still use the previous authorization flow, there is now a very simple authorization flow that may be used instead by using the 'auth_automatic' subcommand on the 'gdfstool'. Whe you run this command, the browser will automatically be opened, you may or may not be prompted for authorization by Google, a redirection will occur, and we will then automatically record the authorization code. GDFS will temporarily open a small webserver on a random port in order to receive the response. **This effectively makes authorization a one-step process for the user.** See below for more details.
Also, a design choice of other implementations is to make the user get API keys
29
-
for *Google Drive*, and this doesn't make sense. Our implementation is built
30
-
against *OAuth 2.0* as a native application. You should just have to visit the
31
-
authorization URL once, plug-in the auth-code, and be done with it.
14
+
- There is now a default file-path for the credentials ("auth storage file"). Just use "default" and "$HOME/.gdfs/creds" will be the file-path used. See below for more details.
15
+
16
+
- The 'auth' subcommand on the 'gdfstool' command is now obsolete. Though you may continue to use this subcommand, please start using the 'auth_get_url' and 'auth_write' subcommands as this subcommand will be removed in the future.
32
17
33
18
34
19
---------
@@ -79,58 +64,74 @@ The versions of a couple of dependencies are relaxed during a normal installatio
79
64
Usage
80
65
-----
81
66
67
+
Overview
68
+
========
69
+
82
70
Before you can mount the account, you must authorize *GDriveFS* to access it.
83
71
*GDriveFS* works by producing a URL that you must visit in a browser. Google
84
72
will ask for your log-in information and authorization, and then give you an
85
73
authorization code. You then pass this code back to the *GDriveFS* utility
86
74
along with a file-path of where you want it to store the authorization
87
-
information ("auth storage file"). Then, you can mount it whenever you'd like.
75
+
information ("auth storage file" or "credentials file"). Then, you can mount it
76
+
whenever you'd like.
88
77
89
78
Since this is *FUSE*, you must be running as root to mount.
90
79
91
-
1. To get an authorization URL::
92
80
93
-
$ gdfstool auth -u
94
-
To authorize FUSE to use your Google Drive account, visit the following URL to produce an authorization code:
2. To set the authorization-code, you must also provide the auth-storage file
99
-
that you would like to save it as. The name and location of this file is
100
-
arbitrary::
86
+
In previous versions, you were required to provide a file-path to write and read the authorization code to. There is now a default ($HOME/.gdfs/creds). Just literally use the string "default" whereever the credentials file-path is required in order to use this default file-path.
101
87
102
-
$ gdfstool auth -a /var/cache/gdfs.creds "4/WUsOa-Sm2RhgQtf9_NFAMMbRC.cj4LQYdXfshQV0ieZDAqA-C7ecwI"
88
+
89
+
Automatic Authorization Flow
90
+
----------------------------
91
+
92
+
There is now a simplified flow that will automatically open the system Web browser, do any authentication necessary, and automatically write the authorization-code to disk::
93
+
94
+
$ gdfstool auth_automatic
103
95
Authorization code recorded.
104
96
105
-
3. There are three ways to mount the account:
97
+
$ gdfs default /mnt/gdrivefs
106
98
107
-
- Via script::
99
+
This automatic flow will require GDFS to temporarily start a small, internal webserver on the first available port.
A Vagrantfile has been made available in the event that you'd like to mount your account from a system that isn't FUSE compatible (like Mac), or you're having issues installing GDriveFS somewhere else and would like to debug.
150
+
A Vagrantfile has been made available in the event that you would like to mount your account from a system that isn't FUSE compatible (like a Mac) or you are having issues installing GDriveFS somewhere else and would like to debug.
150
151
151
152
To install Vagrant::
152
153
@@ -177,7 +178,7 @@ To start and provision the instance::
177
178
==> default:
178
179
==> default: Once you have retrieved your authorization string, run:
179
180
==> default:
180
-
==> default: sudo gdfstool auth -a /var/cache/gdfs.creds <auth string>
181
+
==> default: sudo gdfstool auth_write <authcode>
181
182
==> default:
182
183
183
184
This may take a few more minutes the first time, as it might need to acquire the Ubuntu 14.04 image if not already available.
@@ -198,10 +199,10 @@ Mounting GDFS in debugging-mode will run GDFS in the foreground, and enable debu
198
199
199
200
Just set the `GD_DEBUG` environment variable to "1"::
@@ -481,10 +482,7 @@ own quotes/etc.., it was more difficult to make sense of the values.
481
482
Misc Notes
482
483
----------
483
484
484
-
- A file will be marked as hidden on *Google Drive* if it has a prefixing dot.
485
-
However, Linux/Unix doesn't care about the "hidden" attribute. If you create a
486
-
file on *Google Drive*, somewhere else, and want it to truly be hidden via this
487
-
software, make sure you add the prefixing dot.
485
+
- A file will be marked as hidden on *Google Drive* if it has a prefixing dot. However, Linux/Unix doesn't care about the "hidden" attribute. If you create a file on *Google Drive*, somewhere else, and want it to truly be hidden via this software, make sure you add the prefixing dot.
488
486
489
487
- If you have a need to do a developer install, use "pip install -e" rather than "python setup.py develop". The latter will [now] break because of the dependencies that are eggs.
0 commit comments