Nick Craig-Wood
9b800d7184
vfs: fix race in cache tests
2018-02-15 21:34:37 +00:00
Nick Craig-Wood
b1945d0094
swift: fix refresh of authentication token
...
Before this fix we were doing the token refresh but ignoring the new
tokens.
This bug was introduced in v1.39 by 4c0e2f9b3b
Fixes #2018
Fixes #2031
2018-02-15 19:22:45 +00:00
Nick Craig-Wood
644313a4b9
http: Fix handling of directories with & in
...
This was caused by inconsistent escaping of the URL in the prefix
check, so check the URL links back to the correct host and scheme
instead of the prefix check.
The decoded path check will catch any URLs which are outside of the
root.
2018-02-14 11:26:37 +00:00
Nick Craig-Wood
675e7c5d8e
docs: make downloads into a table
...
Add the scripted downloads to the download page
2018-02-13 11:23:11 +00:00
Nick Craig-Wood
99f3c8bc93
docs: turn version into a partial so it can be reused more easily
2018-02-13 11:20:23 +00:00
Nick Craig-Wood
ff6a7142da
Add Durval Menezes to contributors
2018-02-12 11:47:01 +00:00
Nick Craig-Wood
ee388c4331
New email address for Oliver Heyme
2018-02-12 11:43:28 +00:00
Nick Craig-Wood
771fbbe314
docs: for --max-delete
2018-02-12 11:32:59 +00:00
Nick Craig-Wood
cd7fd51119
vfs: fix docs - fixes #2067
2018-02-12 11:29:32 +00:00
Nick Craig-Wood
0f787e43b0
mount: link the nssm service manager for mount under Windows
2018-02-12 11:29:32 +00:00
Nick Craig-Wood
3a7bb7b2df
mount: update docs showing --vfs-cache-mode to work around limitations
2018-02-12 11:29:32 +00:00
Nick Craig-Wood
8a25ca786c
drive: add --drive-impersonate for service accounts #1491
2018-02-09 16:58:35 +00:00
Nick Craig-Wood
04a0a7406b
vfs: downgrade "poll-interval is not supported" message to Info
...
...to save confusion as it isn't very important
2018-02-09 07:57:50 +00:00
Nick Craig-Wood
5055b340da
swift: Fix extra HEAD transaction when uploading a new file - fixes #2053
...
Also don't keep the swift.Headers as a pointer to a map, just use the map
2018-02-06 14:43:21 +00:00
Nick Craig-Wood
6546b7e0b0
vendor: update github.com/jlaffaye/ftp to fix FTP with online.net
2018-02-05 09:12:30 +00:00
Nick Craig-Wood
f4a5489d19
vendor: dep ensure changes
2018-02-05 09:10:45 +00:00
Nick Craig-Wood
82418c3021
box: improve accounting for chunked uploads
2018-02-02 15:14:41 +00:00
Nick Craig-Wood
bf6101cb6c
azureblob: improve accounting for chunked uploads
2018-02-02 15:14:41 +00:00
Nick Craig-Wood
5723d2dbff
pcloud: remove unused chunked upload flag and code
2018-02-02 15:14:41 +00:00
Nick Craig-Wood
d0d6b83a7a
fs/accounting: rework to enable accounting to work with crypt and b2
...
This removes the old system of part accounting and replaces it with a
system of popping off the accounting reader and wrapping up new ones
as necessary.
This makes it much easier to carry the context down the chain of
wrapped readers and get the limiting as near as possible to the
output. This makes the accounting more accurate and the bandwidth
limiting smoother.
Fixes #2029 and Fixes #1443
2018-02-02 15:14:41 +00:00
Nick Craig-Wood
bea02fcf52
fs/accounting: factor into separate files without changing functionality
2018-02-02 15:14:40 +00:00
Nick Craig-Wood
8722403b0d
Add nbuchanan to contributors
2018-02-02 14:24:42 +00:00
Nick Craig-Wood
6fb868e00c
config: fix --log-level flag after code reorganization - fixes #2043
2018-02-02 14:07:44 +00:00
Nick Craig-Wood
2f746426e7
install.sh: use mv to overwite an existing binary
...
This stops the install process erroring with "Text file busy" when
trying to `cp` over the binary.
2018-02-02 13:49:37 +00:00
Nick Craig-Wood
295c3fabec
vfs: fill and clean the cache immediately on startup
2018-02-02 12:19:53 +00:00
Nick Craig-Wood
3f8d286a75
vfs: fix cache cleaning on startup
...
Previous to this fix the vfs cache wasn't being cleaned properly on
startup as the atimes of the existing files were being ignored.
2018-02-02 12:06:42 +00:00
Nick Craig-Wood
fc8641809e
fstests: add name of remote to WARN message
2018-02-02 12:05:34 +00:00
Nick Craig-Wood
de35f1c165
Show WARN in integration tests if remote not configured
2018-02-02 09:50:58 +00:00
Nick Craig-Wood
2974efc7d6
Makefile: disable caching in integration tests
2018-02-02 09:37:00 +00:00
Nick Craig-Wood
a6227f34e2
drive: request the export formats only when required #320
...
If the listing has no google docs in or the user uses
`--drive-skip-gdocs` then we don't fetch the export formats which
saves a transaction to drive.
2018-02-01 12:05:00 +00:00
Nick Craig-Wood
8df78f2b6d
operations: ignore size of objects when they are < 0 #320
...
This allows google docs to be transferred and checked correctly.
2018-01-31 16:22:05 +00:00
Nick Craig-Wood
44276db454
vfs: make -ve sized files appear as 0 size. #320
...
This means that Google docs will no longer appear as huge files in
`rclone mount`. They will not be downloadable, though sometimes
trying twice will work.
2018-01-31 16:22:05 +00:00
Nick Craig-Wood
2eb5cfb7ad
fs: Formalize the ObjectUnWrapper interface
2018-01-31 16:21:41 +00:00
Nick Craig-Wood
ed2d4ef4a2
travis: revert switch to using the .x version notation for the go minor versions
...
This doesn't seem to work for the `on` clause in the deploy script so
revert to the previous scheme.
Fixes #2033
2018-01-30 16:28:55 +00:00
Nick Craig-Wood
11fe3fdc16
drive: update docs to clarify access to "Computers" tab #1773
2018-01-30 16:28:55 +00:00
Nick Craig-Wood
c277a4096c
mount: don't set modtime twice #2021
2018-01-29 20:49:13 +00:00
Nick Craig-Wood
1852a0e0c9
dropbox: Fix custom oauth client parameters - fixes #2028
2018-01-29 20:04:41 +00:00
Nick Craig-Wood
44cedbd9d9
Update MAINTAINERS with our new maintainer Fabian Möller @B4dM4n
2018-01-29 16:35:35 +00:00
Nick Craig-Wood
540e00e938
Merge Fabian Möller's email addresses
2018-01-29 16:33:56 +00:00
Nick Craig-Wood
a4fe2455ed
drive: add scope configuration and root folder selection
...
This allows:
* appdata access - Fixes #1799
* access to backup and sync folders - Fixes #1773
* drives.file access - Fixes #2000
* read only access - Fixes #337
2018-01-29 14:40:10 +00:00
Nick Craig-Wood
fe52502f19
fs: Adjust RangeOption.Decode to return -1 for read to end
...
A Range request can never request 0 bytes however this change was made
to make a clearer signal that the limit means read to the end.
Add test and more documentation and fixup uses
2018-01-27 14:31:29 +00:00
Nick Craig-Wood
9a73688e3a
fs: Add ParseRangeOption to parse incoming Range: requests
2018-01-27 13:16:37 +00:00
Nick Craig-Wood
bc3ee977f4
fs/hash: move interface assertion to tests so it doesn't pull in spf13/flag
2018-01-26 14:35:18 +00:00
Nick Craig-Wood
a69fc8b80d
travis: run tests on go1.10rc1
2018-01-26 12:16:46 +00:00
Nick Craig-Wood
926cd52a7f
Makefile: make full tests run on go1.10+ as well as go1.9
2018-01-26 12:02:44 +00:00
Nick Craig-Wood
c2ce3114f4
Update CONTRIBUTING with more info about integration tests.
2018-01-26 10:00:16 +00:00
Nick Craig-Wood
d016438243
fstest: Fix CheckWithDuplicates after code reshuffle to not use operations
2018-01-25 12:03:39 +00:00
Nick Craig-Wood
fa500e6d21
lib/atexit: factor from cmd so it can be used by backend/cache #1946
2018-01-25 10:33:00 +00:00
Nick Craig-Wood
dbabb18b0c
vfs: Make error messages more informative #2009
2018-01-25 10:33:00 +00:00
Nick Craig-Wood
6f6f2aa369
fstest: Fix config file override, hence fixing make quicktest
2018-01-25 10:33:00 +00:00
Nick Craig-Wood
38f829842a
s3: fix server side copy and set modtime on files with + in - fixes #2001
...
This was broken in 64ea94c1a4 when
putting a work-around for Digital Ocean. PathEscape has now been
adjusted so it works with both providers.
2018-01-23 10:50:50 +00:00
Nick Craig-Wood
f9806848fe
fstest: use the difficult file name for server side copy #2001
...
This should detect re-occurrence of #315
2018-01-23 09:37:33 +00:00
Nick Craig-Wood
88e0770f2d
cache: Implement RangeOption #1825
2018-01-22 19:44:55 +00:00
Nick Craig-Wood
a6833b68ca
local: factor RangeOption code to Decode() method and readers.LimitedReadCloser #1825
2018-01-22 19:44:00 +00:00
Nick Craig-Wood
e44dc2b14d
box: fix RangeOption support in Open #1825
2018-01-22 17:05:47 +00:00
Nick Craig-Wood
d876392d15
onedrive: Factor code into fs.FixRangeOption
2018-01-22 17:05:00 +00:00
Nick Craig-Wood
c098e25552
fstest: Skip RangeOption test on Appveyor also
2018-01-22 11:10:29 +00:00
Nick Craig-Wood
ea69deaa4c
fstests: Skip RangeOption test in CI until all implemented
2018-01-21 18:09:16 +00:00
Nick Craig-Wood
c963c74fbe
onedrive: fix RangeOption support in Open #1825
2018-01-21 17:11:37 +00:00
Nick Craig-Wood
9c45125271
azureblob: fix RangeOption support in Open #1825
2018-01-21 17:11:32 +00:00
Nick Craig-Wood
8653944a6d
Make RangeOption manadatory for Open - #1825
...
Add an integration test to make sure all backends implement
RangeOption correctly.
2018-01-21 17:09:12 +00:00
Nick Craig-Wood
84bc4dc142
Clarify RangeOption semantics
2018-01-21 09:51:28 +00:00
Nick Craig-Wood
84d00e9046
authors: Fix duplicated entry for Iakov Davydov
2018-01-21 09:38:50 +00:00
Nick Craig-Wood
bfa2878d24
Add Andreas Roussos to contributors
2018-01-20 18:50:29 +00:00
Nick Craig-Wood
62b74d06ff
Add Jody Frankowski to contributors
2018-01-20 18:15:27 +00:00
Nick Craig-Wood
7117ba7d58
Add Iakov Davydov to contributors
2018-01-20 18:15:27 +00:00
Nick Craig-Wood
25a41e1945
drive: fix missing error handler
2018-01-20 18:04:23 +00:00
Nick Craig-Wood
ee66419a27
fs/fserrors: Add test for error from #1964
2018-01-19 17:07:40 +00:00
Nick Craig-Wood
8e86a902e2
travis: switch to using the .x version notation for the go minor versions
2018-01-19 14:32:32 +00:00
Nick Craig-Wood
a80d8a21dc
vfs: add flags parameter to Dir.Create
2018-01-19 13:18:40 +00:00
Nick Craig-Wood
517bdc719b
vfs: make specialized file Open functions private
2018-01-19 11:46:01 +00:00
Nick Craig-Wood
5ad226ab54
fs: Add dir option to fs.Purge #1891
...
Purge optional interface needs fixing too.
2018-01-19 11:45:50 +00:00
Nick Craig-Wood
a375992186
fstest: Fix removal of test folders/buckets
2018-01-19 10:20:06 +00:00
Nick Craig-Wood
b96c73bee6
test_all: fix -clean flag
2018-01-19 09:47:01 +00:00
Nick Craig-Wood
97c414f025
config/hash: rename more symbols after factoring into own package
2018-01-18 20:27:52 +00:00
Nick Craig-Wood
71722b5b95
config: factor Obscure and Reveal into its own package
2018-01-18 20:19:55 +00:00
Nick Craig-Wood
59a8108fc3
webdav: add a new time format #1952
2018-01-18 16:54:13 +00:00
Nick Craig-Wood
821be5ebed
ncdu: add link to asciinema demo of it in action
2018-01-18 14:22:43 +00:00
Nick Craig-Wood
2030dc13b2
lib/oauthutil: fix Google drive oauth process
...
The problem was introduced by the code refactoring in
11da2a6c9b
2018-01-18 11:18:35 +00:00
Nick Craig-Wood
ad76dd0adc
Add Lucas Bremgartner to contributors
2018-01-16 19:53:59 +00:00
Nick Craig-Wood
4b0c5f79b5
qingstor: Only support on go1.7+
2018-01-16 17:05:26 +00:00
Nick Craig-Wood
1848e26183
dropbox: Only support on go1.7+
...
See https://github.com/dropbox/dropbox-sdk-go-unofficial/pull/40
2018-01-16 17:05:02 +00:00
Nick Craig-Wood
7d3a17725d
vendor: update all dependencies to latest versions
2018-01-16 13:20:59 +00:00
Nick Craig-Wood
8e83fb6fb9
Makefile: Fix integration test runner
2018-01-16 13:14:41 +00:00
Nick Craig-Wood
11da2a6c9b
Break the fs package up into smaller parts.
...
The purpose of this is to make it easier to maintain and eventually to
allow the rclone backends to be re-used in other projects without
having to use the rclone configuration system.
The new code layout is documented in CONTRIBUTING.
2018-01-15 17:51:14 +00:00
Nick Craig-Wood
92624bbbf1
Move all backends into backend directory
2018-01-12 20:27:08 +00:00
Nick Craig-Wood
60afda007b
Move dircache, oauthutil, rest and pacer modules into lib
2018-01-12 17:07:38 +00:00
Nick Craig-Wood
b8b620f5c2
Move all backends into backend directory
2018-01-12 17:07:38 +00:00
Nick Craig-Wood
712e6a8085
lsf: fix integration tests
2018-01-11 13:52:15 +00:00
Nick Craig-Wood
6d333da69f
Add Will Gunn to contributors
2018-01-10 20:33:57 +00:00
Nick Craig-Wood
052c886317
sftp: read $USER in username fallback not $HOME
2018-01-08 21:39:16 +00:00
Nick Craig-Wood
28480c0570
sftp: use correct OS way of reading username - fixes running under crontab
2018-01-07 12:57:46 +00:00
Nick Craig-Wood
72349bdaae
Add Jon Fautley to contributors
2018-01-07 11:19:14 +00:00
Nick Craig-Wood
0eba37d8f3
lsf: add --files-only and --dirs-only flags
2018-01-06 18:04:24 +00:00
Nick Craig-Wood
c74c3b37da
lsf: add option to print hashes
2018-01-06 17:53:37 +00:00
Nick Craig-Wood
7c71ee1a5b
fs: fix TestListFormat on remotes which return 0 as dir size not -1
2018-01-06 17:47:42 +00:00
Nick Craig-Wood
ed20fa5ee7
ls* commands: update docs and add defaults into options for lsf
2018-01-06 17:00:20 +00:00
Nick Craig-Wood
54a9fdf421
ls2: remove in favour of lsf
2018-01-06 14:41:36 +00:00
Nick Craig-Wood
8f47d7fc06
Add Chris Redekop to contributors
2018-01-06 14:30:27 +00:00
Nick Craig-Wood
65618afd8c
serve/http: fix serving files with : in - fixes #1939
2018-01-05 17:25:05 +00:00