aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Rasmussen2015-03-22 12:33:13 +0100
committerPetter Rasmussen2015-03-22 12:33:13 +0100
commit7c06afaabdcfb7982cd1c39d2fc0f23f56f51202 (patch)
tree27dcfbfe4fa5dafd02a30259dc4953ec244a8079
parentf88d083e8e7538be15911d559a29f1ad66eb6a49 (diff)
downloadgdrive-7c06afaabdcfb7982cd1c39d2fc0f23f56f51202.tar.bz2
Set default chunk size to 4 MiB
See prasmussen/google-api-go-client@01eb774
-rw-r--r--README.md2
-rw-r--r--drive.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index fa597fc..ad13e60 100644
--- a/README.md
+++ b/README.md
@@ -69,7 +69,7 @@ If you want to compile from source you need the go toolchain: http://golang.org/
--share Share uploaded file
--mimetype The MIME type (default will try to figure it out)
--convert File will be converted to Google Docs format
- -C, --chunksize Set chunk size in bytes. Minimum is 262144, default is 1048576. Recommended to be a power of two.
+ -C, --chunksize Set chunk size in bytes. Minimum is 262144, default is 4194304. Recommended to be a power of two.
url:
-i, --id File Id (*)
-p, --preview Generate preview url (default)
diff --git a/drive.go b/drive.go
index 2115f41..db7c2f5 100644
--- a/drive.go
+++ b/drive.go
@@ -48,7 +48,7 @@ type Options struct {
Share bool `goptions:"--share, description='Share uploaded file'"`
MimeType string `goptions:"--mimetype, description='The MIME type (default will try to figure it out)'"`
Convert bool `goptions:"--convert, description='File will be converted to Google Docs format'"`
- ChunkSize int64 `goptions:"-C, --chunksize, description='Set chunk size in bytes. Minimum is 262144, default is 1048576. Recommended to be a power of two.'"`
+ ChunkSize int64 `goptions:"-C, --chunksize, description='Set chunk size in bytes. Minimum is 262144, default is 4194304. Recommended to be a power of two.'"`
} `goptions:"upload"`
Download struct {