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
cmd.Flags().IntVar(&info.UploadConfig.WorkerCount, "worker-count", 3, "the number of concurrently uploaded parts of a single file in resumable upload")
75
+
cmd.Flags().BoolVar(&info.UploadConfig.SequentialReadFile, "sequential-read-file", false, "File reading is sequential and does not involve skipping; when enabled, the uploading fragment data will be loaded into the memory. This option may increase file upload speed for mounted network filesystems.")
cmd.Flags().Int64Var(&info.ResumableAPIV2PartSize, "resumable-api-v2-part-size", data.BLOCK_SIZE, "the part size when use resumable upload v2 APIs to upload")
cmd.Flags().BoolVar(&info.SequentialReadFile, "sequential-read-file", false, "File reading is sequential and does not involve skipping; when enabled, the uploading fragment data will be loaded into the memory. This option may increase file upload speed for mounted network filesystems.")
206
209
207
210
cmd.Flags().Int64VarP(&info.ChunkSize, "resumable-api-v2-part-size", "", data.BLOCK_SIZE, "the part size when use resumable upload v2 APIs to upload, default 4M")
208
211
cmd.Flags().Int64VarP(&info.ChunkSize, "v2-part-size", "", data.BLOCK_SIZE, "the part size when use resumable upload v2 APIs to upload, same to --resumable-api-v2-part-size")
Copy file name to clipboardExpand all lines: docs/qupload2.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ Flags:
42
42
--rescan-local rescan local dir to upload newly add files
43
43
--resumable-api-v2 use resumable upload v2 APIs to upload
44
44
--resumable-api-v2-part-size int the part size when use resumable upload v2 APIs to upload (default 4194304)
45
+
--sequential-read-file File reading is sequential and does not involve skipping; when enabled, the uploading fragment data will be loaded into the memory. This option may increase file upload speed for mounted network filesystems.
45
46
--skip-file-prefixes string skip files with these file prefixes
46
47
--skip-fixed-strings string skip files with the fixed string in the name
47
48
--skip-path-prefixes string skip files with these relative path prefixes
oldError:=data.NewEmptyError().AppendDescF("Decrypt account bytes: %s, you can delete account file(%s) and use `account` command to reset the account", dErr, pt)
125
+
iflen(acc.Name) ==0 {
126
+
returnaccount, oldError
127
+
}
128
+
129
+
accounts, lErr:=LookUp(acc.Name)
130
+
iflErr!=nil||len(accounts) ==0 {
131
+
returnaccount, oldError
132
+
}
133
+
134
+
account=accounts[0]
135
+
136
+
// 尝试替换错误缓存,失败也没关系
137
+
jsonStr, mErr:=account.value()
138
+
ifmErr!=nil {
139
+
log.WarningF("get account, get json error:%s", mErr)
0 commit comments