Compare commits

...
Sign in to create a new pull request.

11 commits

Author SHA1 Message Date
Nick Craig-Wood
373fb01725 Version v1.50.2 2019-11-19 16:03:01 +00:00
Nick Craig-Wood
7766c5c90b accounting: fix memory leak on retries operations
Before this change if an operation was retried on operations.Copy and
the operation was large enough to use an async buffer then an async
buffer was leaked on the retry.  This leaked memory, a file handle and
a go routine.

After this change if Account.WithBuffer is called and there is already
a buffer, then a new one won't be allocated.
2019-11-19 12:12:47 +00:00
Nick Craig-Wood
473a437163 drive: fix --drive-root-folder-id with team/shared drives
Before this change rclone used the team_drive ID as the root if set
even if the root_folder_id was set too.

This change uses the root_folder_id in preference over the team_drive
which restores the functionality.

This problem was introduced by ba7c2ac443

Fixes #3742
2019-11-17 14:50:44 +00:00
Nick Craig-Wood
9662554f53 drive: fix listing of the root directory with drive.files scope
We attempt to find the ID of the root folder by doing a GET on the
folder ID "root". With scope "drive.files" this fails with a 404
message.

After this change if we get the 404 message, we just carry on using
"root" as the root folder ID and we cache that for future lookups.

This means that changenotify messages will not work correctly in the
root folder but otherwise has minor consequences.

See: https://forum.rclone.org/t/fresh-raspberry-pi-build-google-drive-404-error-failed-to-ls-googleapi-error-404-file-not-found/12791
2019-11-11 09:07:54 +00:00
Nick Craig-Wood
db930850cc Version v1.50.1 2019-11-02 14:26:50 +00:00
Nick Craig-Wood
6f8558f61a local: fix listings of . on Windows - fixes #3676 2019-10-30 16:03:13 +00:00
Nick Craig-Wood
d4fe62ec08 hash: fix hash names for DropboxHash and CRC-32
These were unintentionally renamed as part of 1dc8bcd48c

Fixes #3679
2019-10-30 16:02:57 +00:00
Nick Craig-Wood
9d69bc0b48 fshttp: don't print token bucket errors on context cancelled
These happen as a natural part of exceeding --max-transfer and we
don't need to worry the user with them.
2019-10-30 16:02:47 +00:00
Xiaoxing Ye
f91b120be7 onedrive: no trailing slash reading metadata...
No trailing slash when reading metadata of an item given item ID.

This should fix #3664.
2019-10-30 16:02:31 +00:00
Nick Craig-Wood
fb25a926d7 fshttp: fix error reporting on tpslimit token bucket errors 2019-10-30 16:02:23 +00:00
Nick Craig-Wood
6c10b162ea rc: fix formatting of docs 2019-10-27 10:44:29 +00:00
90 changed files with 31966 additions and 25497 deletions

14590
MANUAL.html generated

File diff suppressed because one or more lines are too long

33
MANUAL.md generated
View file

@ -1,6 +1,6 @@
% rclone(1) User Manual
% Nick Craig-Wood
% Oct 26, 2019
% Nov 19, 2019
# Rclone - rsync for cloud storage
@ -7133,6 +7133,7 @@ Authentication is required for this call.
### config/get: Get a remote in the config file. {#config/get}
Parameters:
- name - name of remote to get
See the [config dump command](https://rclone.org/commands/rclone_config_dump/) command for more information on the above.
@ -7275,6 +7276,7 @@ If group is not provided then summed up stats for all groups will be
returned.
Parameters
- group - name of the stats group (string)
Returns the following values:
@ -7316,8 +7318,8 @@ This clears counters and errors for all stats or specific stats group if group
is provided.
Parameters
- group - name of the stats group (string)
```
### core/transferred: Returns stats about completed transfers. {#core/transferred}
@ -7331,6 +7333,7 @@ returned.
Note only the last 100 completed transfers are returned.
Parameters
- group - name of the stats group (string)
Returns the following values:
@ -7354,6 +7357,7 @@ Returns the following values:
### core/version: Shows the current version of rclone and the go runtime. {#core/version}
This shows the current version of go and the go runtime
- version - rclone version, eg "v1.44"
- decomposed - version number as [major, minor, patch, subpatch]
- note patch and subpatch will be 999 for a git compiled version
@ -7367,14 +7371,17 @@ This shows the current version of go and the go runtime
Parameters - None
Results
- jobids - array of integer job ids
### job/status: Reads the status of the job ID {#job/status}
Parameters
- jobid - id of the job (integer)
Results
- finished - boolean
- duration - time in seconds that the job ran for
- endTime - time the job finished (eg "2018-10-26T18:50:20.528746884+01:00")
@ -7389,6 +7396,7 @@ Results
### job/stop: Stop the running job {#job/stop}
Parameters
- jobid - id of the job (integer)
### operations/about: Return the space used on the remote {#operations/about}
@ -8452,7 +8460,7 @@ These flags are available for every command.
--use-json-log Use json log format.
--use-mmap Use mmap allocator (see docs).
--use-server-modtime Use server modified time instead of object metadata
--user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.50.0")
--user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.50.2")
-v, --verbose count Print lots more stuff (repeat for more)
```
@ -20181,6 +20189,25 @@ to override the default choice.
# Changelog
## v1.50.2 - 2019-11-19
* Bug Fixes
* accounting: Fix memory leak on retries operations (Nick Craig-Wood)
* Drive
* Fix listing of the root directory with drive.files scope (Nick Craig-Wood)
* Fix --drive-root-folder-id with team/shared drives (Nick Craig-Wood)
## v1.50.1 - 2019-11-02
* Bug Fixes
* hash: Fix accidentally changed hash names for `DropboxHash` and `CRC-32` (Nick Craig-Wood)
* fshttp: Fix error reporting on tpslimit token bucket errors (Nick Craig-Wood)
* fshttp: Don't print token bucket errors on context cancelled (Nick Craig-Wood)
* Local
* Fix listings of . on Windows (Nick Craig-Wood)
* Onedrive
* Fix DirMove/Move after Onedrive change (Xiaoxing Ye)
## v1.50.0 - 2019-10-26
* New backends

13487
MANUAL.txt generated

File diff suppressed because it is too large Load diff

View file

@ -1 +1 @@
v1.50.0
v1.50.2

View file

@ -1021,16 +1021,22 @@ func NewFs(name, path string, m configmap.Mapper) (fs.Fs, error) {
}
// set root folder for a team drive or query the user root folder
if f.isTeamDrive {
f.rootFolderID = f.opt.TeamDriveID
} else if opt.RootFolderID != "" {
if opt.RootFolderID != "" {
// override root folder if set or cached in the config
f.rootFolderID = opt.RootFolderID
} else if f.isTeamDrive {
f.rootFolderID = f.opt.TeamDriveID
} else {
// Look up the root ID and cache it in the config
rootID, err := f.getRootID()
if err != nil {
return nil, err
if gerr, ok := errors.Cause(err).(*googleapi.Error); ok && gerr.Code == 404 {
// 404 means that this scope does not have permission to get the
// root so just use "root"
rootID = "root"
} else {
return nil, err
}
}
f.rootFolderID = rootID
m.Set("root_folder_id", rootID)

View file

@ -113,7 +113,7 @@ var (
// Register with Fs
func init() {
DbHashType = hash.RegisterHash("Dropbox", 64, dbhash.New)
DbHashType = hash.RegisterHash("DropboxHash", 64, dbhash.New)
fs.Register(&fs.RegInfo{
Name: "dropbox",
Description: "Dropbox",

View file

@ -1084,17 +1084,17 @@ func (o *Object) Remove(ctx context.Context) error {
func cleanRootPath(s string, noUNC bool) string {
if runtime.GOOS == "windows" {
s = filepath.ToSlash(s)
vol := filepath.VolumeName(s)
s = vol + enc.FromStandardPath(s[len(vol):])
s = filepath.FromSlash(s)
if !filepath.IsAbs(s) && !strings.HasPrefix(s, "\\") {
s2, err := filepath.Abs(s)
if err == nil {
s = s2
}
}
s = filepath.ToSlash(s)
vol := filepath.VolumeName(s)
s = vol + enc.FromStandardPath(s[len(vol):])
s = filepath.FromSlash(s)
if !noUNC {
// Convert to UNC
s = uncPath(s)

View file

@ -54,7 +54,7 @@ var testsWindows = [][2]string{
{`\\?\UNC\theserver\dir\file.txt`, `\\?\UNC\theserver\dir\file.txt`},
{`//?/UNC/theserver/dir\file.txt`, `\\?\UNC\theserver\dir\file.txt`},
{`c:/temp`, `c:\temp`},
{`/temp/file.txt`, `\temp\file.txt`},
{`C:/temp/file.txt`, `C:\temp\file.txt`},
{`c:\!\"#¤%&/()=;:*^?+-`, `c:\!\#¤%&\()=;^+-`},
{`c:\<>"|?*:&\<>"|?*:&\<>"|?*:&`, `c:\&\&\&`},
}

View file

@ -351,8 +351,13 @@ func shouldRetry(resp *http.Response, err error) (bool, error) {
// instead of simply using `drives/driveID/root:/itemPath` because it works for
// "shared with me" folders in OneDrive Personal (See #2536, #2778)
// This path pattern comes from https://github.com/OneDrive/onedrive-api-docs/issues/908#issuecomment-417488480
//
// If `relPath` == '', do not append the slash (See #3664)
func (f *Fs) readMetaDataForPathRelativeToID(ctx context.Context, normalizedID string, relPath string) (info *api.Item, resp *http.Response, err error) {
opts := newOptsCall(normalizedID, "GET", ":/"+withTrailingColon(rest.URLPathEscape(enc.FromStandardPath(relPath))))
if relPath != "" {
relPath = "/" + withTrailingColon(rest.URLPathEscape(enc.FromStandardPath(relPath)))
}
opts := newOptsCall(normalizedID, "GET", ":"+relPath)
err = f.pacer.Call(func() (bool, error) {
resp, err = f.srv.CallJSON(ctx, &opts, nil, &info)
return shouldRetry(resp, err)

View file

@ -1,11 +1,30 @@
---
title: "Documentation"
description: "Rclone Changelog"
date: "2019-10-26"
date: "2019-11-19"
---
# Changelog
## v1.50.2 - 2019-11-19
* Bug Fixes
* accounting: Fix memory leak on retries operations (Nick Craig-Wood)
* Drive
* Fix listing of the root directory with drive.files scope (Nick Craig-Wood)
* Fix --drive-root-folder-id with team/shared drives (Nick Craig-Wood)
## v1.50.1 - 2019-11-02
* Bug Fixes
* hash: Fix accidentally changed hash names for `DropboxHash` and `CRC-32` (Nick Craig-Wood)
* fshttp: Fix error reporting on tpslimit token bucket errors (Nick Craig-Wood)
* fshttp: Don't print token bucket errors on context cancelled (Nick Craig-Wood)
* Local
* Fix listings of . on Windows (Nick Craig-Wood)
* Onedrive
* Fix DirMove/Move after Onedrive change (Xiaoxing Ye)
## v1.50.0 - 2019-10-26
* New backends

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone"
slug: rclone
url: /commands/rclone/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone about"
slug: rclone_about
url: /commands/rclone_about/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone authorize"
slug: rclone_authorize
url: /commands/rclone_authorize/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone cachestats"
slug: rclone_cachestats
url: /commands/rclone_cachestats/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone cat"
slug: rclone_cat
url: /commands/rclone_cat/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone check"
slug: rclone_check
url: /commands/rclone_check/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone cleanup"
slug: rclone_cleanup
url: /commands/rclone_cleanup/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone config"
slug: rclone_config
url: /commands/rclone_config/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone config create"
slug: rclone_config_create
url: /commands/rclone_config_create/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone config delete"
slug: rclone_config_delete
url: /commands/rclone_config_delete/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone config disconnect"
slug: rclone_config_disconnect
url: /commands/rclone_config_disconnect/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone config dump"
slug: rclone_config_dump
url: /commands/rclone_config_dump/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone config edit"
slug: rclone_config_edit
url: /commands/rclone_config_edit/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone config file"
slug: rclone_config_file
url: /commands/rclone_config_file/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone config password"
slug: rclone_config_password
url: /commands/rclone_config_password/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone config providers"
slug: rclone_config_providers
url: /commands/rclone_config_providers/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone config reconnect"
slug: rclone_config_reconnect
url: /commands/rclone_config_reconnect/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone config show"
slug: rclone_config_show
url: /commands/rclone_config_show/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone config update"
slug: rclone_config_update
url: /commands/rclone_config_update/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone config userinfo"
slug: rclone_config_userinfo
url: /commands/rclone_config_userinfo/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone copy"
slug: rclone_copy
url: /commands/rclone_copy/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone copyto"
slug: rclone_copyto
url: /commands/rclone_copyto/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone copyurl"
slug: rclone_copyurl
url: /commands/rclone_copyurl/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone cryptcheck"
slug: rclone_cryptcheck
url: /commands/rclone_cryptcheck/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone cryptdecode"
slug: rclone_cryptdecode
url: /commands/rclone_cryptdecode/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone dbhashsum"
slug: rclone_dbhashsum
url: /commands/rclone_dbhashsum/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone dedupe"
slug: rclone_dedupe
url: /commands/rclone_dedupe/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone delete"
slug: rclone_delete
url: /commands/rclone_delete/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone deletefile"
slug: rclone_deletefile
url: /commands/rclone_deletefile/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone genautocomplete"
slug: rclone_genautocomplete
url: /commands/rclone_genautocomplete/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone genautocomplete bash"
slug: rclone_genautocomplete_bash
url: /commands/rclone_genautocomplete_bash/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone genautocomplete zsh"
slug: rclone_genautocomplete_zsh
url: /commands/rclone_genautocomplete_zsh/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone gendocs"
slug: rclone_gendocs
url: /commands/rclone_gendocs/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone hashsum"
slug: rclone_hashsum
url: /commands/rclone_hashsum/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone link"
slug: rclone_link
url: /commands/rclone_link/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone listremotes"
slug: rclone_listremotes
url: /commands/rclone_listremotes/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone ls"
slug: rclone_ls
url: /commands/rclone_ls/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone lsd"
slug: rclone_lsd
url: /commands/rclone_lsd/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone lsf"
slug: rclone_lsf
url: /commands/rclone_lsf/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone lsjson"
slug: rclone_lsjson
url: /commands/rclone_lsjson/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone lsl"
slug: rclone_lsl
url: /commands/rclone_lsl/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone md5sum"
slug: rclone_md5sum
url: /commands/rclone_md5sum/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone mkdir"
slug: rclone_mkdir
url: /commands/rclone_mkdir/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone mount"
slug: rclone_mount
url: /commands/rclone_mount/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone move"
slug: rclone_move
url: /commands/rclone_move/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone moveto"
slug: rclone_moveto
url: /commands/rclone_moveto/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone ncdu"
slug: rclone_ncdu
url: /commands/rclone_ncdu/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone obscure"
slug: rclone_obscure
url: /commands/rclone_obscure/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone purge"
slug: rclone_purge
url: /commands/rclone_purge/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone rc"
slug: rclone_rc
url: /commands/rclone_rc/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone rcat"
slug: rclone_rcat
url: /commands/rclone_rcat/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone rcd"
slug: rclone_rcd
url: /commands/rclone_rcd/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone rmdir"
slug: rclone_rmdir
url: /commands/rclone_rmdir/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone rmdirs"
slug: rclone_rmdirs
url: /commands/rclone_rmdirs/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone serve"
slug: rclone_serve
url: /commands/rclone_serve/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone serve dlna"
slug: rclone_serve_dlna
url: /commands/rclone_serve_dlna/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone serve ftp"
slug: rclone_serve_ftp
url: /commands/rclone_serve_ftp/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone serve http"
slug: rclone_serve_http
url: /commands/rclone_serve_http/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone serve restic"
slug: rclone_serve_restic
url: /commands/rclone_serve_restic/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone serve sftp"
slug: rclone_serve_sftp
url: /commands/rclone_serve_sftp/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone serve webdav"
slug: rclone_serve_webdav
url: /commands/rclone_serve_webdav/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone settier"
slug: rclone_settier
url: /commands/rclone_settier/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone sha1sum"
slug: rclone_sha1sum
url: /commands/rclone_sha1sum/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone size"
slug: rclone_size
url: /commands/rclone_size/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone sync"
slug: rclone_sync
url: /commands/rclone_sync/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone touch"
slug: rclone_touch
url: /commands/rclone_touch/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone tree"
slug: rclone_tree
url: /commands/rclone_tree/

View file

@ -1,5 +1,5 @@
---
date: 2019-10-26T11:04:03+01:00
date: 2019-11-19T16:02:36Z
title: "rclone version"
slug: rclone_version
url: /commands/rclone_version/

View file

@ -1,7 +1,7 @@
---
title: "Global Flags"
description: "Rclone Global Flags"
date: "2019-10-26T11:04:03+01:00"
date: "2019-11-19T16:02:36Z"
---
# Global Flags
@ -127,7 +127,7 @@ These flags are available for every command.
--use-json-log Use json log format.
--use-mmap Use mmap allocator (see docs).
--use-server-modtime Use server modified time instead of object metadata
--user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.50.0")
--user-agent string Set the user-agent to a specified string. The default is rclone/ version (default "rclone/v1.50.2")
-v, --verbose count Print lots more stuff (repeat for more)
```

View file

@ -340,6 +340,7 @@ Authentication is required for this call.
### config/get: Get a remote in the config file. {#config/get}
Parameters:
- name - name of remote to get
See the [config dump command](/commands/rclone_config_dump/) command for more information on the above.
@ -482,6 +483,7 @@ If group is not provided then summed up stats for all groups will be
returned.
Parameters
- group - name of the stats group (string)
Returns the following values:
@ -523,8 +525,8 @@ This clears counters and errors for all stats or specific stats group if group
is provided.
Parameters
- group - name of the stats group (string)
```
### core/transferred: Returns stats about completed transfers. {#core/transferred}
@ -538,6 +540,7 @@ returned.
Note only the last 100 completed transfers are returned.
Parameters
- group - name of the stats group (string)
Returns the following values:
@ -561,6 +564,7 @@ Returns the following values:
### core/version: Shows the current version of rclone and the go runtime. {#core/version}
This shows the current version of go and the go runtime
- version - rclone version, eg "v1.44"
- decomposed - version number as [major, minor, patch, subpatch]
- note patch and subpatch will be 999 for a git compiled version
@ -574,14 +578,17 @@ This shows the current version of go and the go runtime
Parameters - None
Results
- jobids - array of integer job ids
### job/status: Reads the status of the job ID {#job/status}
Parameters
- jobid - id of the job (integer)
Results
- finished - boolean
- duration - time in seconds that the job ran for
- endTime - time the job finished (eg "2018-10-26T18:50:20.528746884+01:00")
@ -596,6 +603,7 @@ Results
### job/stop: Stop the running job {#job/stop}
Parameters
- jobid - id of the job (integer)
### operations/about: Return the space used on the remote {#operations/about}

View file

@ -1 +1 @@
v1.50.0
v1.50.2

View file

@ -70,6 +70,10 @@ func newAccountSizeName(stats *StatsInfo, in io.ReadCloser, size int64, name str
// WithBuffer - If the file is above a certain size it adds an Async reader
func (acc *Account) WithBuffer() *Account {
// if already have a buffer then just return
if acc.withBuf {
return acc
}
acc.withBuf = true
var buffers int
if acc.size >= int64(fs.Config.BufferSize) || acc.size == -1 {
@ -118,14 +122,16 @@ func (acc *Account) StopBuffering() {
// async buffer (if any) and re-adding it
func (acc *Account) UpdateReader(in io.ReadCloser) {
acc.mu.Lock()
if acc.withBuf {
withBuf := acc.withBuf
if withBuf {
acc.StopBuffering()
acc.withBuf = false
}
acc.in = in
acc.close = in
acc.origIn = in
acc.closed = false
if acc.withBuf {
if withBuf {
acc.WithBuffer()
}
acc.mu.Unlock()

View file

@ -88,6 +88,7 @@ If group is not provided then summed up stats for all groups will be
returned.
Parameters
- group - name of the stats group (string)
Returns the following values:
@ -140,6 +141,7 @@ returned.
Note only the last 100 completed transfers are returned.
Parameters
- group - name of the stats group (string)
Returns the following values:
@ -192,8 +194,8 @@ This clears counters and errors for all stats or specific stats group if group
is provided.
Parameters
- group - name of the stats group (string)
` + "```" + `
`,
})
}

View file

@ -37,6 +37,7 @@ func init() {
AuthRequired: true,
Help: `
Parameters:
- name - name of remote to get
See the [config dump command](/commands/rclone_config_dump/) command for more information on the above.

View file

@ -318,8 +318,8 @@ func (t *Transport) RoundTrip(req *http.Request) (resp *http.Response, err error
// Get transactions per second token first if limiting
if tpsBucket != nil {
tbErr := tpsBucket.Wait(req.Context())
if tbErr != nil {
fs.Errorf(nil, "HTTP token bucket error: %v", err)
if tbErr != nil && tbErr != context.Canceled {
fs.Errorf(nil, "HTTP token bucket error: %v", tbErr)
}
}
// Force user agent

View file

@ -66,7 +66,7 @@ func init() {
MD5 = RegisterHash("MD5", 32, md5.New)
SHA1 = RegisterHash("SHA-1", 40, sha1.New)
Whirlpool = RegisterHash("Whirlpool", 128, whirlpool.New)
CRC32 = RegisterHash("CRC32", 8, func() hash.Hash { return crc32.NewIEEE() })
CRC32 = RegisterHash("CRC-32", 8, func() hash.Hash { return crc32.NewIEEE() })
}
// Supported returns a set of all the supported hashes by

View file

@ -168,6 +168,7 @@ func init() {
Title: "Shows the current version of rclone and the go runtime.",
Help: `
This shows the current version of go and the go runtime
- version - rclone version, eg "v1.44"
- decomposed - version number as [major, minor, patch, subpatch]
- note patch and subpatch will be 999 for a git compiled version

View file

@ -237,9 +237,11 @@ func init() {
Fn: rcJobStatus,
Title: "Reads the status of the job ID",
Help: `Parameters
- jobid - id of the job (integer)
Results
- finished - boolean
- duration - time in seconds that the job ran for
- endTime - time the job finished (eg "2018-10-26T18:50:20.528746884+01:00")
@ -282,6 +284,7 @@ func init() {
Help: `Parameters - None
Results
- jobids - array of integer job ids
`,
})
@ -300,6 +303,7 @@ func init() {
Fn: rcJobStop,
Title: "Stop the running job",
Help: `Parameters
- jobid - id of the job (integer)
`,
})

View file

@ -1,4 +1,4 @@
package fs
// Version of rclone
var Version = "v1.50.0"
var Version = "v1.50.2"

29115
rclone.1 generated

File diff suppressed because it is too large Load diff