Cnly
b874bc22ec
onedrive: graph: Remove unnecessary error checks
2018-08-22 15:24:44 +08:00
Cnly
5f3f9b8a16
onedrive: graph: Refine config handling
2018-08-22 15:24:44 +08:00
Cnly
af469eb45f
onedrive: graph: Refine config keys naming
2018-08-22 15:24:44 +08:00
Oliver Heyme
b030922aec
onedrive: Removed upload cutoff and always do session uploads
...
Set modtime on copy
Added versioning issue to OneDrive documentation
(cherry picked from commit 7f74403)
2018-08-22 15:24:44 +08:00
Cnly
0a1060f8d3
fix Travis build errors with formatting
2018-08-22 15:24:44 +08:00
Cnly
dc4c3e57cc
onedrive: graph: fix unchecked err
2018-08-22 15:24:44 +08:00
Cnly
468760e5e7
Merge 'olihey/onedrive_graph' into graph
...
Squashed commit of the following:
commit b898a732834de497d7748ff20782d82981066927
Author: Cnly <minecnly@gmail.com>
Date: Sat Aug 18 17:13:46 2018 +0800
onedrive: graph: fix supported hash types for different drive types
commit 106c62b634bbcb0015541ef576f6fe20b1c57caf
Author: Cnly <minecnly@gmail.com>
Date: Fri Aug 17 20:28:29 2018 +0800
onedrive: simple upload API only supports max 4MB files
commit 661795756f9a722003fc20a83e743ca901059acb
Merge: 8998c7fd 199454f9
Author: Cnly <minecnly@gmail.com>
Date: Fri Aug 17 16:08:35 2018 +0800
Merge remote-tracking branch 'olihey/onedrive_graph' into graph
# Conflicts:
# backend/onedrive/api/types.go
# backend/onedrive/onedrive.go
commit 199454f9dcfcf4aed6654d98bded39cb3dc6db84
Author: Oliver Heyme <olihey@googlemail.com>
Date: Mon Feb 5 08:13:07 2018 +0100
[onedrive] Send modDate at create upload session and fix list children
commit 6997d0f90f01aeeb3fb93819ede13b978b0ac560
Author: Oliver Heyme <olihey@googlemail.com>
Date: Thu Jan 25 21:17:19 2018 +0100
Better error handling
commit fb58aeb06355a03b2fb59ae07e720b80512fb64b
Author: Oliver Heyme <olihey@googlemail.com>
Date: Thu Jan 25 18:13:17 2018 +0100
Added more options for adding a OneDrive Remote
commit 82c848a60a52b49c6f45c7053ccdab115bf9e2fc
Author: Oliver Heyme <olihey@googlemail.com>
Date: Thu Jan 25 16:13:59 2018 +0100
test succeed
commit daf22065f0dd681e954a877db467b9d9493731bd
Author: Oliver Heyme <olihey@googlemail.com>
Date: Thu Jan 25 10:28:27 2018 +0100
[onedrive] Enable writting
commit 0510f71ed992ffb7e0e0041d03adbe9b8a4d2889
Author: Oliver Heyme <olihey@googlemail.com>
Date: Thu Jan 25 09:26:03 2018 +0100
Changed to Microsoft graph
2018-08-22 15:24:44 +08:00
Cnly
29fa840d3a
onedrive: Add back the check for DirMover interface
2018-08-20 17:31:28 +01:00
Cnly
0f845e3a59
onedrive: implement DirMove - fixes #197
2018-08-07 09:33:19 +01:00
Oleg Kovalov
06c9f76cd2
all: fix go-critic linter suggestions
2018-08-06 21:14:03 +01:00
Nick Craig-Wood
f3f48d7d49
Implement new backend config system
...
This unifies the 3 methods of reading config
* command line
* environment variable
* config file
And allows them all to be configured in all places. This is done by
making the []fs.Option in the backend registration be the master
source of what the backend options are.
The backend changes are:
* Use the new configmap.Mapper parameter
* Use configstruct to parse it into an Options struct
* Add all config to []fs.Option including defaults and help
* Remove all uses of pflag
* Remove all uses of config.FileGet
2018-07-16 21:20:47 +01:00
Yoni Jah
b1bd17a220
onedrive: shared folder support - fixes #1200
2018-07-11 18:48:59 +01:00
Henning Surmeier
f1269dc06a
onedrive: errorHandler for business requests
...
This implementation hopefully can handle all error requests from the
onedrive for business authentication.
I have only tested it with the "domain in unmanaged state" error.
2018-06-06 09:54:21 +01:00
Nick Craig-Wood
826975c341
fs: add Optional ID() method to Object and implement it in backends
...
ID() shows the internal ID of the Object if available.
2018-05-13 12:17:55 +01:00
Nick Craig-Wood
1320e84bc2
build: remove unused code spotted by the deadcode linter
2018-05-05 17:32:41 +01:00
Nick Craig-Wood
1a3fb21a77
onedrive: add QuickXorHash support for OneDrive for business - fixes #2262
2018-04-20 21:03:03 +01:00
Nick Craig-Wood
57a5b72d60
onedrive: implement quickXorHash algorithm #2262
2018-04-20 21:02:37 +01:00
Nick Craig-Wood
1ac6dacf0f
about: complete other providers and re-work internals
...
* Implement about for:
* local, crypt, cache, drive, swift, hubic, onedrive, pcloud, dropbox
* Implement `--json` and `---full` flag for `rclone about`
* change About interface to return a Usage structure
* Remove operations.About as it is too thin an interface
* Implement Integration test
Relates to #1138 and #1564
2018-04-17 21:53:27 +01:00
Nick Craig-Wood
0fa700b3cf
Make integration tests use go1.7+ nested tests #2154
...
* Removed generated code and code generator
* Updated docs on how to write integration tests
* Tidied up the actual integration tests
2018-04-08 15:04:14 +01:00
Nick Craig-Wood
e5be471ce0
Use io.SeekStart/End/Current constants now for go1.7+ #2154
2018-04-07 11:42:36 +01:00
Stefan
a8267d1628
link: allow creating public link to files and folders - closes #1562
2018-03-29 09:10:19 +02:00
Nick Craig-Wood
9df266a6b4
onedrive: Fix socket leak in multipart session upload
...
This had gone unnoticed until recently when we changed to uploading
all files with a multipart session.
2018-03-28 21:03:19 +01:00
Nick Craig-Wood
d4cca8d9f9
onedrive: fix upload of zero length files #1716
...
Unfortunately multi part upload can't upload zero length files so
bring back the single part upload for zero length files only.
This was broken when we made all uploads multipart uploads.
2018-03-17 09:48:28 +00:00
Oliver Heyme
645cf5ec0f
onedrive: fix wrong upload endpoint and createDate #1716
...
This fixes the problem introduced by 7f744033d8eae0fa916c3207e05cf56d7708fd09
2018-03-16 19:18:51 +00:00
Oliver Heyme
7f744033d8
onedrive: Removed upload cutoff and always do session uploads
...
Set modtime on copy
Added versioning issue to OneDrive documentation
2018-03-15 20:18:11 +00:00
Remus Bunduc
70f07fd3ac
fs: add ChangeNotify and backend support for it ( #2094 )
...
* fs: rename DirChangeNotify to ChangeNotify
* cache: switch to ChangeNotify
* ChangeNotify: keep order of notifications
2018-03-08 22:03:34 +02:00
Fabian Möller
aeefa34f62
fstests: add TestInternal ( #2085 )
...
TestInternal allows to perform a custom test on the backend using the
optional InternalTester interface.
2018-02-25 10:58:06 +01:00
Victor
2f63a9f81c
onedrive: Overwrite object size value with real size when reading file.
...
Because of a bug in the Onedrive API it will sometime report the wrong
size. If the size is wrong other remotes that depend on the size might
fail. To fix this we overwrite the objects size with the real size
from ContentLength header.
2018-02-16 13:21:26 +00:00
Nick Craig-Wood
d876392d15
onedrive: Factor code into fs.FixRangeOption
2018-01-22 17:05:00 +00:00
Nick Craig-Wood
c963c74fbe
onedrive: fix RangeOption support in Open #1825
2018-01-21 17:11:37 +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
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
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