verhoek
441d893a49
Changes to make codacy happier.
2018-06-09 14:19:18 +02:00
verhoek
bc826b2300
Tidy up.
2018-06-09 11:07:13 +02:00
verhoek
2a964e0146
Reordered private and statics.
2018-06-09 11:04:12 +02:00
verhoek
65f079e745
Made bucketobjectpath private.
2018-06-09 10:58:34 +02:00
verhoek
7b5779ca5d
Merge remote-tracking branch 'origin' into webapi/googlecloudstorage
...
# Conflicts:
# Duplicati/Library/Backend/GoogleServices/GCSConfig.cs (line endings)
# Duplicati/Library/Backend/GoogleServices/GoogleCloudStorage.cs (readonly)
2018-06-09 08:49:23 +02:00
verhoek
c1832cab4e
Fixed incorrect line endings.
2018-06-09 08:30:39 +02:00
verhoek
3fb7175931
Merge remote-tracking branch 'origin/master' into feature/tempdir
...
# Conflicts:
# Duplicati/Server/Runner.cs (copied readonly prop)
2018-06-07 16:37:40 +02:00
Kenneth Skovhede and GitHub
c5c13ab242
Merge pull request #3257 from warwickmm/remove_redundant_tostring
...
Remove redundant calls to ToString
2018-06-07 13:36:20 +02:00
Kenneth Hsu
08a897d7b0
Remove redundant calls to ToString.
2018-06-04 20:15:34 -07:00
Tyler Gill
5be38df560
Fix typo in OAuthHttpClient
2018-06-04 14:59:58 -06:00
Kenneth Skovhede
e6535e2cfa
Merge branch 'master' of github.com:duplicati/duplicati
...
# Conflicts:
# Duplicati/Server/WebServer/RESTMethods/UISettings.cs
2018-06-04 10:48:11 +02:00
Kenneth Skovhede and GitHub
448d37f7cb
Merge pull request #3252 from warwickmm/remove_string_format
...
Remove unnecessary calls to String.Format
2018-06-04 10:42:02 +02:00
Kenneth Skovhede and GitHub
66e5dfe722
Merge pull request #3237 from tygill/fix/msgraph-delete-error
...
(MS Graph) When the delete operation fails due to a 'file not found' error, we don't need to bubble up an exception
2018-06-04 10:41:16 +02:00
Kenneth Skovhede and GitHub
3b6c2b61d5
Merge pull request #3242 from warwickmm/remove_ineffective_statements
...
Remove ineffective statements
2018-06-04 10:40:32 +02:00
verhoek
40b83fe2dc
Moved out AboutInfoUrl and CreateFolderUrl.
2018-06-03 19:46:54 +02:00
Tyler Gill
f2f5d4c0a6
Change from swallowing delete errors to wrapping DriveItemNotFoundException in FileMissingException.
...
This way, the regular backend manager logic can handle and log the delete of a non-existant file.
Also update some of the other operations to throw FileMissingException (rather than the backend specific DriveItemNotFoundException).
2018-06-02 15:52:20 -06:00
Kenneth Hsu
afdae80716
Fix line ending issues.
2018-06-02 13:19:49 -07:00
Kenneth Hsu
20f2f37806
Remove unnecessary calls to String.Format.
2018-06-02 12:02:55 -07:00
verhoek
c063fde018
Moved ListUrl, PutUrl and DeleteUrl to WebApi.
2018-06-01 16:21:28 +02:00
verhoek
83679c0f12
Moved Rename and Get Url to Google WebAPI.
2018-05-30 08:22:00 +02:00
verhoek
3691d6dfdf
Initiated basic unit tests to ensure correct url helper functions.
2018-05-29 22:13:09 +02:00
verhoek
1ba8814d76
Started moving url specific construction to webapi.
2018-05-28 08:29:23 +02:00
verhoek
e80f30f8a9
Added multiple context setting keys to callcontextsettings, exploiting
...
reflection. Contextsettings don't destroy each other anymore.
2018-05-26 21:56:15 +02:00
Kenneth Hsu
bbe65f9dfb
Remove ineffective statements.
...
The removed code was introduced in revision ba58651e5a ("Fix for
CreateFolder with SSH"), presumably to fix an issue where some SSH
backends did not like the trailing slash when creating new folders.
However, since we are not using the output argument of the call to
Substring, these statements have no effect.
2018-05-26 10:36:50 -07:00
Kenneth Hsu
f12858e6a5
Mark fields that shouldn't be reassigned as readonly.
...
This makes it explicit at compile-time that these fields should not be
reassigned outside the constructor.
2018-05-25 10:04:52 -07:00
Tyler Gill
8131e85581
(MS Graph) When the delete operation fails due to a 'file not found' error, we don't need to bubble up an exception.
2018-05-25 09:18:20 -06:00
verhoek
4972c9c865
Merge branch 'webapi/googlecloudstorage' of https://github.com/verhoek/duplicati into webapi/googlecloudstorage
2018-05-23 21:20:31 +02:00
verhoek
bbf5d71782
Merge branch 'master' into webapi/googlecloudstorage
2018-05-23 20:14:06 +02:00
Kenneth Skovhede and GitHub
19851c88f0
Merge pull request #3227 from warwickmm/use_string_builder
...
Replace string concatenation with StringBuilder
2018-05-23 11:10:36 +02:00
verhoek
cac891d187
Added BucketObjectPath helper method.
2018-05-20 11:10:37 +02:00
verhoek
13ef221196
Updated Rename method.
2018-05-20 10:57:49 +02:00
verhoek
745b77da23
Renamed WebApi GoogleCloudServices to GoogleCloudStorage. Refactored Get. Fixed Layout.
2018-05-20 10:50:37 +02:00
Kenneth Hsu
0b016cea2c
Replace string concatenation with StringBuilder.
...
When appending to a string in a loop, using a StringBuilder should in
general yield better performance.
2018-05-19 15:36:00 -07:00
verhoek
18de687530
Updated Put and Createfolder using WebApi.
2018-05-19 23:06:02 +02:00
verhoek
d6a85ae497
Imports organized, bucket locations moved to google webapi.
2018-05-18 23:00:01 +02:00
verhoek
41234a314d
Introduced UrlPath wrapper for stringbuilder to ease concatenation of multiple paths.
...
Started cleaning googlecloud services API.
2018-05-18 22:55:09 +02:00
verhoek
2f41e02ca9
Merge branch 'master' into refactored
2018-05-18 08:05:19 +02:00
Kenneth Skovhede and GitHub
b7b4fbe778
Merge pull request #3221 from verhoek/webapi/googledrive
...
Webapi/googledrive
2018-05-17 14:44:50 +02:00
Tom Whitwell
54ae844536
Add Memset's Cloud Storage to Openstack providers
2018-05-17 12:03:30 +01:00
verhoek
0b9712ee84
Removed unused var.
2018-05-16 21:21:35 +02:00
verhoek
c5783b2ae4
Merge branch 'master' into webapi/googledrive
2018-05-15 20:31:58 +02:00
verhoek
0cca2797df
Use concat paths in helper functions of googledrive.
2018-05-15 20:29:08 +02:00
verhoek
1cde60c640
Removed misplaced leftover line.
2018-05-15 20:28:52 +02:00
Kenneth Skovhede
2c44cce136
Merge branch 'feature/remove-console-writeline'
2018-05-15 12:12:07 +02:00
Kenneth Skovhede
ee64517f7d
Removed calls to Console.WriteLine as we may run somewhere without a console.
2018-05-15 11:29:08 +02:00
verhoek
6dd64a553d
Fixed code quality issues.
2018-05-14 21:01:18 +02:00
Kenneth Hsu
0777d9c98a
Fix indentation to improve readability.
...
The previous indentation could give the impression that it belongs to
the preceding if-statement.
2018-05-13 14:24:13 -07:00
verhoek
dae12fee53
Organized imports.
2018-05-13 16:27:14 +02:00
verhoek
a67248f51f
Moved Api strings to separate class similarly to the constant setup in Strings.cs.
2018-05-13 16:22:41 +02:00
verhoek
051b030836
Fixed typo regarding pageToken. Integrated other strings in static string class.
2018-05-12 12:42:51 +02:00