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
John Leach
1602a3a055
Check if swift segments container exists before create
...
Avoids blindly trying to create the segments container, which can fail if the
authentication credentials don't allow container creates or updates.
Fixes #1769
2017-10-26 21:39:05 +01:00
Nick Craig-Wood
fafaea7edc
Add Andrew Starr-Bochicchio to contributors
2017-10-26 21:35:19 +01:00
Andrew Starr-Bochicchio
e6fb96cfd4
Initial docs for usage with DigitalOcean Spaces.
2017-10-26 21:34:42 +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
ishuah
10f27e2ff2
allow trailing+leading whitespace for passwords - #1717
...
warn users when they enter passwords with leading/trailing whitespaces
Updated config_test.go, removing deprecated test case and updated TestReveal
2017-10-20 15:46:17 +01:00
Jason Rose
d121a94c20
Corrected default log-level value
2017-10-20 15:43:31 +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
Dan Dascalescu
9417194751
Fix dedupe description typo
2017-10-16 21:51:31 +01:00
Dan Dascalescu
69ba806528
2017-Oct update to the Drive docs
2017-10-16 21:50:08 +01:00
Dan Dascalescu
ae9d58d625
Copy edit the SFTP guide
2017-10-16 21:49:25 +01:00
Ubuntu
d6bab0169f
Per-remote env variables start with RCLONE_CONFIG_
2017-10-16 21:45:22 +01:00
Ubuntu
d7dd6f3814
Typo fix: resove -> resolve
2017-10-16 21:45:22 +01:00