Nick Craig-Wood
2121c0fa23
dircache: factor DirMove code out of backends into dircache
...
Before this change there was lots of duplicated code in all the
dircache using backends to support DirMove.
This change factors this code into the dircache library.
2020-06-25 09:41:36 +01:00
Nick Craig-Wood
a8652e2252
dircache: simplify interface, fix corner cases and apply to backends
...
Dircache was changed to:
- Remove special cases for the root directory
- Remove Fatal errors
- Call FindRoot on behalf of the user wherever possible
- Bring up to modern Go standards
Backends were changed to:
- Remove calls to FindRoot
- Change calls to FindRootAndPath to FindPath
- Don't make special cases for the root
This fixes several corner cases, for example removing a non existent
directory if FindRoot hasn't been called.
2020-06-25 09:41:36 +01:00
Cenk Alti
16422a6b78
putio: fix panic on Object.Open #4315
2020-06-10 12:16:09 +01:00
Nick Craig-Wood
49ba4eeb86
oauthutil: tidy interface to Config to add Options struct
...
The interface was getting so that a new function was needed for every
Config variant. Adding an Options struct fixes this.
2020-05-26 11:27:01 +01:00
Nick Craig-Wood
8c9c86c3d6
putio: fix parsing of remotes with leading and trailing /
...
See: https://forum.rclone.org/t/unable-to-copy-from-remote-but-mount-works/16351/
2020-05-14 11:52:43 +01:00
Nick Craig-Wood
ab6ed256e5
putio: add support for --header-upload and --header-download #59
2020-04-23 15:55:52 +01:00
Nick Craig-Wood
7c98ecd3ab
putio: make downloading files use the rclone http Client
...
This fixes `--download-header` and these transactions being missed from
`--dump bodies` or `--tpslimit`
2020-04-23 15:48:30 +01:00
Nick Craig-Wood
bafe7d5a73
backends: move encoding definitions from fs/encodings
2020-01-16 14:40:36 +00:00
Nick Craig-Wood
3c620d521d
backend: adjust backends to have encoding parameter
...
Fixes #3761
Fixes #3836
Fixes #3841
2020-01-16 14:40:36 +00:00
Cenk Alti
929f275ae5
putio: add ability to resume uploads
2019-10-14 20:01:16 +01:00
Nick Craig-Wood
fd51f24906
putio: use lib/encoder
...
And in the process
- fix a bug with + and & in file name
- fix NewObject returning directories as files
2019-10-02 11:34:08 +01:00
Nick Craig-Wood
66c23723e3
Add context to all http.NewRequest #3257
...
When we drop support for go1.12 we can use http.NewRequestWithContext
2019-09-09 23:27:07 +01:00
Cenk Alti
a1ca65bd80
putio: add new backend
2019-08-23 12:11:36 +01:00