-
Notifications
You must be signed in to change notification settings - Fork 426
Home
Welcome to the drive wiki!
-
An installation of Go with version >= 1.3
To check your go version:
$> go version
-
Your gopath should have been set in your e.g
Sample set up:
vi ~/.bashrc or vi ~/.bash_profile
export GOPATH=~/gopath
export PATH=$GOPATH:$GOPATH/bin:${PATH}
$> go get -u github.com/odeke-em/drive/cmd/drive
Note: Running go install or go get -u github.com/odeke-em/drive/cmd/drive will not create an executable.
To setup/mount your Google Drive directory to path ~/GDRIVE
- What does a pull operation do?
A pull operation gets the manifest of content from your Google drive and tries to mirror the Google Drive's
content to your drive. This will entail downloading content from the cloud as well as deleting content that
is present on your local drive folder but not on your Google Drive.
- How is a pull operation performed?
** Performing a pull with no arguments will pull all the respective content in from the current path
** You can also pull from a specific path
-
What does "push" do?
push uploads/updates content to your Google Drive mirroring its directory structure locally.
-
How is a push operation performed?
- What does pub do?
"pub" publishes a file globally so that anyone with a link to it can read the file.
- How do I publish a file?
- What happens if I publish a file that doesn't yet exist on the my Google Drive?
-
What does unpub do?
"unpub" revokes public read access to a file.
-
How do I unpublish a file?
-
How do I delete a file on the cloud?
The options here are:
-
Using your browser login to Google Drive and delete that file.
- The next pull that you do should clean up that file off your disk.
-
Using your terminal, take that file out of its position and then perform a push on only that file.
- The moving can be performed with a rename, move or delete (rm)
-
Currently there is no deinit
command. To remove a directory from drive
's knowledge, simply delete the .gd
directory found within a previously init
'd directory.