Stefan Breunig
28a18303f3
implement rcat – fixes #230 , fixes #1001
2017-08-03 21:42:35 +02:00
Nick Craig-Wood
b5bf819256
acd,b2,crypt,drive: add missing upload options
2017-07-23 11:32:34 +01:00
Nick Craig-Wood
6c3bf629a1
yandex: fix fs.Name()
...
Put in tests for fs.Root() and fs.Name() for all remotes
2017-07-03 13:39:31 +01:00
Nick Craig-Wood
e7d04fc103
Create fs.Directory interface and use it everywhere
2017-06-30 14:26:59 +01:00
Nick Craig-Wood
70b5b2f5c6
acd, onedrive: fix initialization order for token renewer - fixes #1442
2017-06-27 22:19:35 +01:00
Nick Craig-Wood
8a6a8b9623
Change List interface and add ListR optional interface
...
This simplifies the implementation of remotes. The only required
interface is now `List` which is a simple one level directory list.
Optionally remotes may implement `ListR` if they have an efficient way
of doing a recursive list.
2017-06-14 16:49:40 +01:00
Nick Craig-Wood
10d5377ed8
acd: remove revoked credentials, allow oauth proxy config and update docs
2017-06-10 12:02:34 +01:00
Nick Craig-Wood
3fe9448229
drive, acd, onedrive: Cache the directory IDs when reading the parent directory
...
This makes directory listings much more efficient (one less
transaction needed) and also fixes #1439 (which was caused by having
to look up a directory name with quotes in which isn't dealt with well
by the list routine) by not doing a directory lookup at all.
2017-06-05 12:26:30 +01:00
Nick Craig-Wood
20da3e6352
Add options to Put, PutUnchecked and Update, add HashOption and speed up local
...
* Add options to Put, PutUnchecked and Update for all Fses
* Use these to create HashOption
* Implement this in local
* Pass the option in fs.Copy
This has the effect that we only calculate hashes we need to in the
local Fs which speeds up transfers significantly.
2017-05-29 12:04:52 +01:00
Stefan Breunig
a2e3af0523
poll for Google Drive changes when mounted
2017-05-28 17:54:52 +01:00
Nick Craig-Wood
412dacf8be
Add a test for partial reads to all remotes
2017-05-19 12:28:47 +01:00
Martin Kristensen
7b4f368307
acd: fix typo in log message for temp link download
2017-04-25 08:07:00 +01:00
Nick Craig-Wood
4b4c59a4bb
crypt: add integration tests for obfuscate name encryption
2017-03-29 17:57:10 +01:00
Nick Craig-Wood
9b07d32c02
onedrive, drive, amazonclouddrive: make sure we find the root
...
This fixes copyto copying things to the wrong place - fixes #1231
2017-03-16 09:42:49 +00:00
Nick Craig-Wood
488353c977
acd: Fix Move returning nil objects and nil error #1226
2017-03-09 21:32:50 +00:00
Nick Craig-Wood
e48d19f895
acd: make file size warning at Info level so it appears by default
2017-02-26 13:23:12 +00:00
Nick Craig-Wood
79e3c67bbd
local, yandex, dropbox: fix NewObject suceeding on a directory #1079
...
Add tests to make it consistent across all remotes
2017-02-25 11:09:57 +00:00
Nick Craig-Wood
f3c5745468
Add srcRemote and dstRemote parameters to DirMove #954
2017-02-16 17:42:37 +00:00
Nick Craig-Wood
0366ea39c5
Reassign some logging levels
2017-02-11 17:56:05 +00:00
Nick Craig-Wood
80f53176d9
Rename log functions and factor into own file
2017-02-11 17:54:50 +00:00
Nick Craig-Wood
40c02989f1
acd: Fix panic on token expiry - fixes #1117
2017-02-11 17:49:59 +00:00
Nick Craig-Wood
381b845307
acd: Fix nil pointer deref after Move #1098
...
Don't attempt to read the info in moveNode as there are paths which
don't, read it again from the directory afterwards.
2017-02-04 12:56:21 +00:00
Nick Craig-Wood
bd29015022
Factor token renewer from amazonclouddrive to oauthutil
2017-01-29 20:45:44 +00:00
Nick Craig-Wood
e9da14ac2e
acd: After moving a file, wait for the file to no longer be in the directory
...
This fixes a Move followed quickly by a Copy updating the wrong file.
2017-01-19 20:11:17 +00:00
Nick Craig-Wood
0604d3dbf2
acd, onedrive: make sure we have found the root before purging
...
If we don't, purge can try to trash the root node which fortunately
doesn't succeed.
2017-01-16 17:33:25 +00:00
Nick Craig-Wood
1fa258c2b4
Define a new Features() method for Fs
...
Optional interfaces are becoming more important in rclone,
--track-renames and --backup-dir both rely on them.
Up to this point rclone has used interface upgrades to define optional
behaviour on Fs objects. However when one Fs object wraps another it
is very difficult for this scheme to work accurately. rclone has
relied on specific error messages being returned when the interface
isn't supported - this is unsatisfactory because it means you have to
call the interface to see whether it is supported.
This change enables accurate detection of optional interfaces by use
of a Features struct as returned by an obligatory Fs.Features()
method. The Features struct contains flags and function pointers
which can be tested against nil to see whether they can be used.
As a result crypt and hubic can accurately reflect the capabilities of
the underlying Fs they are wrapping.
2017-01-16 17:33:25 +00:00
Nick Craig-Wood
aa62e93094
acd: fix panic when renaming files - fixes #973
...
Fixed by no longer overwriting the parameters in a retry loop
2017-01-14 09:50:45 +00:00
Nick Craig-Wood
0d75d2585f
Allow all options to be set from environment variables
...
The option names are munged changing - to _ making upper case and
prepending RCLONE_. The values are as parsed by pflag.
2017-01-03 22:42:47 +00:00
Nick Craig-Wood
5b5df9ae8e
acd: fix the corner cases in Move and DirMove and refactor
2016-12-09 16:57:07 +00:00
Nick Craig-Wood
48a2e3844d
Add optional interface DirCacheFlush for making the tests more reliable
...
This is defined for the users of dircache drive, onedrive, and acd.
This helps fix the DirMove tests on acd.
2016-12-09 16:57:07 +00:00
Nick Craig-Wood
05798672c8
acd: Fix nil pointer deref - fixes #916
2016-11-30 21:05:35 +00:00
Nick Craig-Wood
aaa1370a36
Add directory parameter to Rmdir and Mkdir #100 #831
...
This will enable rclone to manage directories properly in the future.
2016-11-26 12:02:53 +00:00
Stefan Breunig
1e41a015b5
just use one upload method, as go-acd can determine size itself now
...
Fixes #874
Fixes #669
2016-11-19 10:52:00 +00:00
Stefan Breunig
fb1458815a
acd: add support for server side DirMove #122
2016-11-11 18:05:24 +00:00
Stefan Breunig
2243b065e8
acd: filter out bogus children Amazon reports sometimes
2016-11-11 18:05:24 +00:00
Stefan Breunig
718694d5ee
acd: server side move #122
...
This approach (ab)uses that trashed items can have naming conflicts
and that one can change their parents, even though direct replacing
("moving") is forbidden.
2016-11-11 18:05:24 +00:00
Too Much IO
ca017980a3
Add support for server side move operations
...
Depends on pull request at https://github.com/ncw/go-acd/pull/1
2016-11-11 18:05:24 +00:00
Nick Craig-Wood
e162377ca3
acd: Simplify the wait options into a single --acd-upload-wait-per-gb - fixes #262
...
This means the feature can be disabled by setting the time to 0.
This also logs the HTTP status for analysis purposes.
Thanks Felix Bünemann for extensive testing and data collection.
2016-11-05 13:57:03 +00:00
Nick Craig-Wood
441951a93b
Stop removing failed upload to cloud storage remotes - fixes #559
...
We do remove a partially written file on local so we don't have
corrupted files lying around.
2016-11-04 21:34:25 +00:00
Nick Craig-Wood
452c68115f
acd: Add 502 Bad Gateway to list of errors we retry
2016-11-03 18:56:21 +00:00
Nick Craig-Wood
2302179237
acd: Fix overwriting a file with a zero length file
2016-11-02 16:39:55 +00:00
Felix Bünemann
1c912de9cc
Fix ACD file size warning limit
...
The previous value of 50 GiB was too high, we need to use 50,000 MiB.
For detailed discusssion see issue #215 .
2016-11-02 13:15:35 +00:00
Nick Craig-Wood
5986953317
acd: Reset the headers on tempurl redirect #802
2016-10-26 18:42:41 +01:00
Nick Craig-Wood
5b8327038a
acd: make upload timeouts scale by file size
...
Fixes #712
Fixes #262
2016-10-22 11:53:06 +01:00
Nick Craig-Wood
aef2ac5c04
Add options for Open and implement Range for all remotes
2016-10-05 21:03:56 +01:00
Nick Craig-Wood
945f49ab5e
Make ContentType be preserved for cloud -> cloud copies - fixes #733
2016-10-03 20:02:04 +01:00
Nick Craig-Wood
20a429c048
acd: Only wait for uploads to appear on 408,500,504 errors - fixes #712
2016-09-12 17:50:19 +01:00
Nick Craig-Wood
0cb9bb3b54
Redo http Transport code
...
* Insert User-Agent in Transport - fixes #199
* Update timeouts to use Context
* Modernise transport
2016-09-12 17:50:19 +01:00
Nick Craig-Wood
e6a0521ca2
Make it possible to test Fs multiple times and use this with crypt
...
We test both the filename encryption modes for crypt.
2016-08-23 17:45:37 +01:00
Nick Craig-Wood
6a4e424630
Re-implement Obscure/Reveal so they use AES-CTR encryption
2016-08-23 17:45:37 +01:00