Nick Craig-Wood
05a1e1532b
vfs,mount,cmount,serve: Add documentation for vfs caching modes
2017-11-20 12:46:21 +00:00
Nick Craig-Wood
7f20e1d7f3
vfs: add read write files and caching #711
...
This adds new flags to mount, cmount, serve *
--cache-max-age duration Max age of objects in the cache. (default 1h0m0s)
--cache-mode string Cache mode off|minimal|writes|full (default "off")
--cache-poll-interval duration Interval to poll the cache for stale objects. (default 1m0s)
2017-11-20 12:36:50 +00:00
Nick Craig-Wood
bb0ce0cb5f
vendor: vfs add vendor/github.com/djherbis/times
2017-11-20 12:36:50 +00:00
Nick Craig-Wood
e946a8eab0
fs: Add CacheDir config variable
2017-11-20 12:00:32 +00:00
Nick Craig-Wood
a0cfa0929b
vfs: remove un-needed (after introduction of rcat) createInfo struct
2017-11-20 12:00:32 +00:00
Nick Craig-Wood
3fb1e96988
vfs: factor Open logic from Dir.Create into vfs.OpenFile
2017-11-20 12:00:32 +00:00
Nick Craig-Wood
46947b3b9b
rcat: fix goroutine leak
...
This was leaking goroutines in the short file case beause it wasn't
calling Close() on the Account object. This became apparent when
testing with mount.
2017-11-20 12:00:32 +00:00
Nick Craig-Wood
de98e2480d
Add Jakub Tasiemski to contributors
2017-11-20 11:16:22 +00:00
Nick Craig-Wood
6cc968b085
Add Fabian Möller to contributors
2017-11-19 22:14:33 +00:00
Nick Craig-Wood
409ba56fde
Add Iakov Davydov to contributors
2017-11-17 21:52:00 +00:00
Nick Craig-Wood
5d875e8840
Add Remus Bunduc to contributors
2017-11-17 21:52:00 +00:00
Nick Craig-Wood
704e82aab1
dropbox: adapt to upstream changes #1804
2017-11-15 16:02:29 +00:00
Nick Craig-Wood
fc352c1ff6
vendor: update github.com/dropbox/dropbox-sdk-go-unofficial to fix #1804
2017-11-15 15:55:01 +00:00
Nick Craig-Wood
e491093cd1
vendor: dep ensure to get things into sync after merges
2017-11-15 15:52:44 +00:00
Nick Craig-Wood
4355f3fe97
Add Ernest Borowski to contributors
2017-11-14 21:25:02 +00:00
Nick Craig-Wood
8c8abfd6dc
vendor: update github.com/a8m/tree - fixes #1797
2017-11-06 11:23:27 +00:00
Nick Craig-Wood
72072d7d6b
Add Pierre Carlson to contributors
2017-11-05 22:09:31 +00:00
Nick Craig-Wood
245edd1b0e
local: fix equality check for times
2017-11-05 21:39:49 +00:00
Nick Craig-Wood
4d081ec87e
Add Corban Raun to contributors
2017-11-05 21:39:49 +00:00
Nick Craig-Wood
68d0b5adbb
serve webdav: this implements a webdav server for any rclone remote.
2017-11-04 10:24:11 +00:00
Nick Craig-Wood
c4ad3ac94c
vendor: ensure golang.org/x/net/webdav is vendored
2017-11-04 10:24:11 +00:00
Nick Craig-Wood
16e16bc220
serve http: use vfs to cache the directories and support Range header
2017-11-04 10:24:11 +00:00
Nick Craig-Wood
73dfa21ba3
local: avoid triggering the race detector
2017-11-04 10:24:11 +00:00
Nick Craig-Wood
c31556c6d1
vfs: Make sure all public methods are locked in Read and Write Handle
2017-11-04 10:24:10 +00:00
Nick Craig-Wood
2083ac6e2a
vfs: add ECLOSED and tidy errors
2017-11-04 10:24:10 +00:00
Nick Craig-Wood
22ee839d05
cmount,vfs: unify Read and Write handles and File and Dir where possible
2017-11-04 10:24:10 +00:00
Nick Craig-Wood
5634659ea3
mount,vfs: unify Read and Write handles in preparation for ReadWrite handles
2017-11-04 10:24:10 +00:00
Nick Craig-Wood
e18122e88b
vfs: add tests and subsequent fixes
...
* Tests for VFS layer
* Small fixes found during testing
* Fix Close, Flush and Release behaviour for ReadFileHandle and WriteFileHandle
* Fix nil object bugs on File
2017-11-04 10:24:10 +00:00
Nick Craig-Wood
07ec8073fe
mount: remove unused DirEntry struct
2017-11-03 13:00:00 +00:00
Nick Craig-Wood
8184ec4b70
vfs: add EPERM to errors
2017-11-03 13:00:00 +00:00
Nick Craig-Wood
190367d917
vfs: factor duplicated Open code into vfs from mount/cmount
2017-11-03 13:00:00 +00:00
Nick Craig-Wood
a5dc62f6c1
vfs: Make file handles compatible with OS
...
* Implement directory handles
* Unify OpenFile
* Add all the methods to match *os.File
* Add StatParent and Rename methods to VFS
2017-11-03 13:00:00 +00:00
Nick Craig-Wood
3e0c91ba4b
vfs: Move DefaultOpt to vfs and make some methods private
2017-11-03 13:00:00 +00:00
Nick Craig-Wood
7e065440fb
vfs: rename Lookup to Stat to be more in keeping with os
2017-11-03 12:59:59 +00:00
Nick Craig-Wood
e8883e9fdb
vfs: factor flags into vfsflags and remove global variables
2017-11-03 12:59:59 +00:00
Nick Craig-Wood
1a8f824bad
vfs: use os package errors where possible
2017-11-03 12:59:59 +00:00
Nick Craig-Wood
c1aaff220d
Factor new vfs module out of cmd/mountlib
...
This is an OS style file system abstraction with directory caching
used in mount, cmount, serve webdav and serve http.
2017-11-03 12:59:59 +00:00
Nick Craig-Wood
6da6b2556b
mountlib: make directory entries be returned in sorted order
2017-11-03 12:59:59 +00:00
Nick Craig-Wood
ca19fd2d7e
mountlib: Make read/write file handles support more standard interfaces
...
Including Read, ReadAt, Seek, Close for read handles and Write,
WriteAt, Close for read handles.
2017-11-03 12:59:59 +00:00
Nick Craig-Wood
2fac74b517
mountlib: store only Node in *Dir removing DirEntry struct
2017-11-03 12:59:59 +00:00
Nick Craig-Wood
8b6daaa877
mountlib: add DirEntry() to Node interface
2017-11-03 12:59:59 +00:00
Nick Craig-Wood
3af9d63261
mountlib: add Remove and RemoveAll methods to Node
2017-11-03 12:59:59 +00:00
Nick Craig-Wood
c6cd2a5280
mountlib: add parent and entry to Dir
2017-11-03 12:59:59 +00:00
Nick Craig-Wood
0bb84efe75
mountlib: Rename Remove to RemoveName
2017-11-03 12:59:59 +00:00
Nick Craig-Wood
3ec15ac2bd
mountlib: make sure Node is always set in DirEntry
...
This simplifies the code and makes using the DirEntry.Node usable when
using ReadDir.
2017-11-03 12:59:58 +00:00
Nick Craig-Wood
750690503e
mountlib: make Node satisfy os.FileInfo interface
2017-11-03 12:59:58 +00:00
Nick Craig-Wood
54950d3423
mountlib: make more useful as a general purpose file system adaptor
2017-11-03 12:59:58 +00:00
Nick Craig-Wood
014aa3d157
fstest: check no files or directories between runs
2017-11-03 12:59:58 +00:00
Nick Craig-Wood
cc7ed13b9b
fs: factor test running code into fstest/run.go
2017-11-03 12:59:58 +00:00
Nick Craig-Wood
6552581a17
b2: correct docs on SHA1s on large files
2017-11-03 12:49:15 +00:00
Nick Craig-Wood
f60e2a7aac
swift: add OS_TENANT_ID to config
2017-11-02 14:49:07 +00:00
Nick Craig-Wood
cacae8d12d
swift: add OS_USER_ID to config
...
Also add env names to the config to make them easier to match.
2017-11-01 21:26:04 +00:00
Nick Craig-Wood
4a1013f2de
swift: Allow configs with user id instead of user name
2017-10-31 14:23:10 +00:00
Nick Craig-Wood
d0b9baab13
Update travis builds to go 1.9.2 and go 1.8.5
2017-10-26 22:30:53 +01:00
Nick Craig-Wood
96665c16cb
serve http: make it compile on go1.6 and go1.7
2017-10-26 21:52:29 +01:00
Nick Craig-Wood
39b9f80302
Add John Leach to contributors
2017-10-26 21:39:22 +01:00
Nick Craig-Wood
fafaea7edc
Add Andrew Starr-Bochicchio to contributors
2017-10-26 21:35:19 +01:00
Nick Craig-Wood
e612673ea0
webdav: fix Copy, Move and DirMove to be more compatible
...
The fix was to use an absolute URL in the Destination: as per RFC2518
This makes it compatible with the golang.org/x/net/webdav server
2017-10-25 22:59:22 +01:00
Nick Craig-Wood
fd2406f94e
webdav: fix directory detection when creating a remote
...
Factor the is a directory check out and use it everywhere.
2017-10-25 12:04:20 +01:00
Nick Craig-Wood
cd146415d1
serve http: error if Range supplied (not supported yet)
...
Also add Server header
2017-10-24 23:18:36 +01:00
Nick Craig-Wood
2740c965c0
serve http: Fix timeouts
2017-10-24 23:07:46 +01:00
Nick Craig-Wood
6669165b6b
serve http command to serve a remote over HTTP
...
This implements a basic webserver to serve an rclone remote over HTTP.
It also sets up the framework for adding more types of server later.
2017-10-24 13:25:49 +01:00
Nick Craig-Wood
a06bcd4c57
Add paypal.me link to donate page
2017-10-23 12:56:48 +01:00
Nick Craig-Wood
6df1f6fad1
webdav: support put.io #580
...
* Add docs on how to set up
* Fix the listing routine
* Use Depth: 1 in otherwise we get a recursive listing
* Detect collections properly rather than relying on them ending in /
* Add / to collection URLs which don't have one
2017-10-23 12:37:02 +01:00
Nick Craig-Wood
683befaec1
Add Jason Rose to contributors
2017-10-20 15:46:46 +01:00
Nick Craig-Wood
567071750b
vendor: update github.com/ncw/swift to fix memory leak in swift transfers
2017-10-19 14:44:13 +01:00
Nick Craig-Wood
115053930e
Make error messages less crypting when revealing an unobscured password - fixes #1743
2017-10-16 22:03:06 +01:00
Nick Craig-Wood
ef1346602e
Add contributors
...
* thierry
* Dan Dascalescu
* Simon Leinen
2017-10-16 21:58:58 +01:00
Nick Craig-Wood
edfab09eb9
config: add sub commands for full config file management
...
Previously config sub commands were manually parsed rather than using
cobra.
Make config command have the following sub commands:
* create Create a new remote with name, type and options.
* delete Delete an existing remote <name>.
* dump Dump the config file as JSON.
* edit Enter an interactive configuration session.
* file Show path of configuration file in use.
* providers List in JSON format all the providers and options.
* show Print (decrypted) config file, or the config for a single remote.
* update Update options in an existing remote.
The following changes were made to existing commands
* listproviders was renamed to providers
* listoptions was removed in favour of providing the output in providers
* jsonconfig was renamed to create
* an optional parameter was added to the show command
2017-10-14 11:50:41 +01:00
Nick Craig-Wood
fc8b13c993
moveto/copyto: Fix to allow copying to the same name - fixes #1736
2017-10-12 20:45:36 +01:00
Nick Craig-Wood
b531bf1349
Add android and IOS build to circleci
2017-10-11 13:40:02 +01:00
Nick Craig-Wood
43ced30f11
fs: Add more errors to retry - fixes #1733
2017-10-10 19:51:02 +01:00
Nick Craig-Wood
106bc1c9fc
Add jersou to contributors
2017-10-10 19:44:44 +01:00
Nick Craig-Wood
3eb7f52e39
fs: Add "unexpected EOF reading trailer" as a retriable error - fixes #1730
2017-10-09 17:29:16 +01:00
Nick Craig-Wood
7f3dc9b5c4
Implement WebDAV remote #580
...
This has special knowledge of Owncloud and Nextcloud to enable more
functionality such as mod times.
2017-10-09 16:19:37 +01:00
Nick Craig-Wood
bcdd79320b
rest: Add SetUserPass to create Authorization header
2017-10-09 16:19:37 +01:00
Nick Craig-Wood
2453abfbea
rest: add a Signer callback
2017-10-09 16:19:37 +01:00
Nick Craig-Wood
efd88c5676
rest: add CallXML and DecodeXML functions
2017-10-09 16:19:37 +01:00
Nick Craig-Wood
4966611866
rest: factor URLJoin and URLEscape from http remote
2017-10-09 16:19:37 +01:00
Nick Craig-Wood
00fe6d95da
fs: fix duplicate files causing spurious copies
...
Before this fix duplicate files (on Google Drive) caused the next file
to be spuriously copied. `rclone dedupe` worked around the problem.
2017-10-02 16:52:53 +01:00
Nick Craig-Wood
b7521c0fe2
dropbox: fix error when renaming directories - fixes #1708
2017-10-02 11:21:16 +01:00
Nick Craig-Wood
a1d942e5c3
pcloud: make compile with go1.6
2017-10-01 16:41:23 +01:00
Nick Craig-Wood
9e9297838f
Implement pcloud remote - #418
2017-10-01 11:37:35 +01:00
Nick Craig-Wood
6403242f48
drive, yandex: add missing CleanUpper interface check
2017-09-30 16:34:46 +01:00
Nick Craig-Wood
737cf3d957
rest: factor multipart upload out into function and generalise
2017-09-30 16:08:38 +01:00
Nick Craig-Wood
8f2f480628
rest: Add TransferEncoding and Close parameters
2017-09-30 16:03:47 +01:00
Nick Craig-Wood
a5e0115b19
Makefile: clean some more files
2017-09-30 16:02:00 +01:00
Nick Craig-Wood
63d0734c71
tree: remove workaround for tree library bug now it is fixed
2017-09-30 15:51:14 +01:00
Nick Craig-Wood
b017fcfe9a
vendor: update all dependencies to latest versions
2017-09-30 15:27:27 +01:00
Nick Craig-Wood
911d121bb9
docs: Fix version number
2017-09-30 15:22:00 +01:00
Nick Craig-Wood
1c10497b68
Start v1.38-DEV development
2017-09-30 15:16:09 +01:00
Nick Craig-Wood
d96e45ba5b
Version v1.38
2017-09-30 14:20:43 +01:00
Nick Craig-Wood
657b3a674d
fs: fix test_all -clean to run just one cleaning thread per remote
2017-09-30 11:07:09 +01:00
Nick Craig-Wood
5177d8c854
docs: update website footer
2017-09-30 09:28:49 +01:00
Nick Craig-Wood
b2b989434d
docs: use a shortcode to insert the version string
2017-09-30 09:28:49 +01:00
Nick Craig-Wood
3e9861eecf
docs: improve links to cloud providers
2017-09-30 09:28:49 +01:00
Nick Craig-Wood
3fc69f4140
docs: fix daggers
2017-09-30 09:19:53 +01:00
Nick Craig-Wood
b1e85c7ceb
website: Adapt to hugo v0.27.1
2017-09-30 09:19:53 +01:00
Nick Craig-Wood
1d994f7330
s3: add Wasabi instructions
2017-09-30 09:00:56 +01:00
Nick Craig-Wood
0e76e35b6f
dropbox: Fix deprecation warnings for Move, MoveDir and Copy - fixes #1699
2017-09-30 08:10:51 +01:00