Skip to content

Commit

Permalink
updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
odeke-em committed May 17, 2015
1 parent 0c0e98c commit e690397
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ To pull specific files or directories, pass in one or more paths:
$ drive pull photos/img001.png docs
```
Pulling by id is also supported
```shell
$ drive pull --id 0fM9rt0Yc9RTPaDdsNzg1dXVjM0E 0fM9rt0Yc9RTPaTVGc1pzODN1NjQ 0fM9rt0Yc9RTPV1NaNFp5WlV3dlU
```
## Note: Checksum verification:
Expand Down Expand Up @@ -275,6 +281,12 @@ The `pub` command publishes a file or directory globally so that anyone can view
$ drive pub photos
```
+ Publishing by fileId is also supported
```shell
$ drive pub --id 0fM9rt0Yc9RTPV1NaNFp5WlV3dlU 0fM9rt0Yc9RTPSTZEanBsamZjUXM
```
### Unpublishing
The `unpub` command is the opposite of `pub`. It unpublishes a previously published file or directory.
Expand All @@ -283,6 +295,12 @@ The `unpub` command is the opposite of `pub`. It unpublishes a previously publis
$ drive unpub photos
```
+ Publishing by fileId is also supported
```shell
$ drive unpub --id 0fM9rt0Yc9RTPV1NaNFp5WlV3dlU 0fM9rt0Yc9RTPSTZEanBsamZjUXM
```
### Sharing and Emailing
The `share` command enables you to share a set of files with specific users and assign them specific roles as well as specific generic access to the files. It also allows for email notifications on share.
Expand All @@ -297,6 +315,12 @@ For example to share a file with users of a mailing list and a custom message
$ drive share -emails drive-mailing-list@gmail.com -message "Here is the drive code" -role group mnt/drive
```
+ Also supports sharing by fileId
```shell
$ drive share --emails developers@developers.devs --message "Developers, developers developers" --id 0fM9rt0Yc9RTPeHRfRHRRU0dIY97 0fM9rt0Yc9kJRPSTFNk9kSTVvb0U
```
### Unsharing
The `unshare` command revokes access of a specific accountType to a set of files.
Expand All @@ -305,6 +329,11 @@ The `unshare` command revokes access of a specific accountType to a set of files
$ drive unshare -type group mnt/drive
```
+ Also supports unsharing by fileId
```shell
$ drive unshare --type group --id 0fM9rt0Yc9RTPeHRfRHRRU0dIY97 0fM9rt0Yc9kJRPSTFNk9kSTVvb0U
```
### Touching
Files that exist remotely can be touched i.e their modification time updated to that on the remote server using the `touch` command:
Expand All @@ -319,6 +348,12 @@ For example to touch all files that begin with digits 0 to 9:
$ drive touch -matches $(seq 0 9)
```
+ Also supports touching of files by fileId
```shell
$ drive touch --id 0fM9rt0Yc9RTPeHRfRHRRU0dIY97 0fM9rt0Yc9kJRPSTFNk9kSTVvb0U
```
### Trashing and Untrashing
Files can be trashed using the `trash` command:
Expand Down Expand Up @@ -347,6 +382,13 @@ To untrash files that match a certain prefix pattern
$ drive untrash -matches pQueue photos Untitled
```
+ Also supports trashing/untrashing by fileId
```shell
$ drive trash --id 0fM9rt0Yc9RTPeHRfRHRRU0dIY97 0fM9rt0Yc9kJRPSTFNk9kSTVvb0U
$ drive untrash --id 0fM9rt0Yc9RTPeHRfRHRRU0dIY97 0fM9rt0Yc9kJRPSTFNk9kSTVvb0U
```
### Emptying the Trash
Expand All @@ -368,6 +410,12 @@ $ drive delete flux.mp4
$ drive delete --matches onyx swp
```
+ Also supports deletion by fileIds
```shell
$ drive delete --id 0fM9rt0Yc9RTPeHRfRHRRU0dIY97 0fM9rt0Yc9kJRPSTFNk9kSTVvb0U
```
### Listing Files
Expand Down Expand Up @@ -403,6 +451,12 @@ To get detailed information about the listings e.g owner information and the ver
$ drive list -owners -l -version
```
+ Also supports listing by fileIds
```shell
$ drive list -m 3 --id 0fM9rt0Yc9RTPeHRfRHRRU0dIY97 0fM9rt0Yc9kJRPSTFNk9kSTVvb0U
```
### Stating Files
The `stat` commands show detailed file information for example people with whom it is shared, their roles and accountTypes, and
Expand All @@ -418,6 +472,12 @@ By default `stat` won't recursively stat a directory, to enable recursive statin
$ drive stat -r mnt
```
+ Also supports stat-ing by fileIds
```shell
$ drive stat -r --id 0fM9rt0Yc9RTPeHRfRHRRU0dIY97 0fM9rt0Yc9kJRPSTFNk9kSTVvb0U
```
### Quota
The `quota` command prints information about your drive, such as the account type, bytes used/free, and the total amount of storage available.
Expand Down Expand Up @@ -479,6 +539,13 @@ $ drive copy -r blobStore.py mnt flagging
$ drive copy blobStore.py blobStoreDuplicated.py
```
+ Also supports copying by fileIds
```shell
$ drive copy -r --id 0fM9rt0Yc9RTPeHRfRHRRU0dIY97 0fM9rt0Yc9kJRPSTFNk9kSTVvb0U ../content
```
### Rename
drive allows you to rename a file/folder remotely. To do so:
Expand All @@ -488,6 +555,13 @@ $ drive rename url_test url_test_results
$ drive rename openSrc/2015 2015-Contributions
```
+ Also supports renaming by fileId
```shell
$ drive rename 0fM9rt0Yc9RTPeHRfRHRRU0dIY97 fluxing
```
### Move
drive allows you to move content remotely between folders. To do so:
Expand All @@ -496,6 +570,12 @@ drive allows you to move content remotely between folders. To do so:
$ drive move photos/2015 angles library archives/storage
```
+ Also supports moving by fileId
```shell
$ drive rename 0fM9rt0Yc9RTPeHRfRHRRU0dIY97 0fM9rt0Yc9kJRPSTFNk9kSTVvb0U ../../new_location
```
### DriveIgnore
Expand Down

0 comments on commit e690397

Please sign in to comment.