Skip to content

Commit

Permalink
quota: include both converted + unconverted sizes + updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Odeke committed Jan 6, 2015
1 parent 4803315 commit bf337b0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Use `drive help` for further reference.
$ drive diff [path1 path2 ...] # outputs diffs of multiple paths.
$ drive pub [path1 path2 ...] # publishes the files, outputs URL.
$ drive unpub [path1 path2 ...] # revokes public access to the specified files.
$ drive list [-d 2 path1 path2 path3 ...] # list contents of paths on remote to a recursion depth of 2.
$ drive list [-d 2 -a -no-prompt path1 path2 path3 ...] # list contents of paths on remote to a recursion depth of 2 even listing hidden files and not needing to prompt for pagination.

# Note using the no-clobber option for push or pull ensures that only ADDITIONS are made
# any modifications or deletions are ignored and those files are safe.
Expand Down
9 changes: 6 additions & 3 deletions about.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ func (g *Commands) Quota() (err error) {

freeBytes := about.QuotaBytesTotal - about.QuotaBytesUsed
fmt.Printf(
"Bytes Used: %v\nBytes Free: %v\nTotal Bytes: %v\nAccount type: %s\n",
prettyBytes(about.QuotaBytesUsed), prettyBytes(freeBytes),
prettyBytes(about.QuotaBytesTotal), about.QuotaType)
"Account type: %s\nBytes Used: %20d (%s)\n"+
"Bytes Free: %20d (%s)\nTotal Bytes: %20d (%s)\n",
about.QuotaType,
about.QuotaBytesUsed, prettyBytes(about.QuotaBytesUsed),
freeBytes, prettyBytes(freeBytes),
about.QuotaBytesTotal, prettyBytes(about.QuotaBytesTotal))
return nil
}

Expand Down
2 changes: 1 addition & 1 deletion list.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (g *Commands) breadthFirst(parentId, parent, child string, depth int, inTra
req.Q(expr)

// TODO: Get pageSize from g.opts
req.MaxResults(20)
req.MaxResults(50)

var children []*drive.File

Expand Down

0 comments on commit bf337b0

Please sign in to comment.