Kenneth Hsu
036a0ee8b0
Remove unused variable.
2018-12-31 19:31:03 -08:00
Kenneth Hsu
a6153c3cd8
Do not explicitly rethrow exception.
...
When rethrowing an exception, we should do it by simply calling throw;
and not throw exc;, because the stack trace is reset with the second
syntax, making debugging a lot harder.
2018-12-31 15:25:57 -08:00
Kenneth Skovhede and GitHub
8d3ed27ac9
Merge pull request #3538 from LacunaSoftware/improve-backup-logs-ui
...
New improvements on Backup Logs UI
2018-12-13 15:01:16 +01:00
Mikael Mello
965bd6d761
result-classes: rename properties of RestoreResults to be consistent with BackupResults
2018-12-12 12:14:11 -02:00
Kenneth Hsu
8dd3aeaf26
Use invariant culture in calls to ToLower and ToUpper.
2018-12-11 21:21:07 -08:00
Kenneth Hsu
bb4e5a1d18
Use consistent comment for no-op methods.
2018-12-09 21:42:40 -08:00
Kenneth Hsu
bde56dd0cd
Replace backing field with auto-implemented property.
2018-12-09 20:23:05 -08:00
Kenneth Hsu
7e6fa8a202
Convert write-only IMessageSink.OperationProgress property to method.
...
Write-only properties are confusing and the behavior is better
implemented as a method, which more clearly conveys the write-only
semantics.
2018-12-09 20:23:05 -08:00
Kenneth Hsu
1764b9ad4e
Convert write-only IMessageSink.BackendProgress property to method.
...
Write-only properties are confusing and the behavior is better
implemented as a method, which more clearly conveys the write-only
semantics.
2018-12-09 20:23:05 -08:00
Kenneth Hsu
d7c711adb1
Remove redundant calls to ToString.
2018-11-18 17:24:02 -08:00
verhoek
ab12be6bbd
Renamed IsClientLinux to IsClientPosix .
2018-11-03 09:26:04 +01:00
verhoek
72b1f6b6f8
Updated project files.
2018-11-02 22:45:07 +01:00
verhoek
8bb406cd15
Migrated to use the platform class.
2018-11-02 22:17:16 +01:00
verhoek
b2cc18426c
Renamed Library.IO to Library.Common.IO.
...
Moved basic Platform functions to Library.Common.Platform.
Turned IO_OS into property within Library.Common.
2018-11-02 21:34:07 +01:00
verhoek
9fb38ebe9a
Continuation of Util.DirectorySeparatorString replacements.
2018-11-02 17:48:17 +01:00
verhoek
1275f14405
Replaced DirectorySeparatorChar.ToString() calls.
2018-11-02 17:45:00 +01:00
verhoek
bc053df294
Moved basic IO helper functions to Library.IO.
2018-10-27 12:17:07 +02:00
Rune Henriksen and GitHub
cdf8dd44f4
Merge pull request #3437 from LacunaSoftware/target-newest-windows
...
Target Windows 8.1 and 10 in order to get correct OS Version
2018-10-19 21:05:55 +02:00
Mikael Mello
9eb9ec004d
Target Windows 8.1 and 10 in order to display correct version in UI
2018-10-17 10:37:44 -03:00
Kenneth Skovhede
68d2f10475
Merge branch 'master' of github.com:duplicati/duplicati
2018-10-17 14:37:52 +02:00
Kenneth Skovhede
975baf2579
Reporting the error id to the WebUI
2018-10-17 14:37:43 +02:00
Kenneth Hsu
9e0b031fee
Remove unused members.
2018-10-15 21:20:30 -07:00
Rune Henriksen and GitHub
be7edb580d
Merge pull request #3410 from warwickmm/simplify_enumerating_collections
...
Simplify enumeration of collections
2018-10-07 19:06:28 +02:00
Kenneth Hsu
b824c86c7e
Avoid unnecessary enumeration of collections.
...
This improves performance by using Any() to avoid unnecessary
enumeration of collections.
2018-10-06 16:20:18 -07:00
Kenneth Hsu
0c1ac9c489
Replace chained LINQ calls with call to overload with predicate.
...
This simplifies the code by reducing the number of enumerators created
while also making the code slightly more readable.
2018-10-06 16:20:18 -07:00
Kenneth Hsu
d72128ec83
Remove unused method parameters.
2018-10-06 15:09:43 -07:00
Rune Henriksen and GitHub
b9efd3a3a7
Merge pull request #3400 from warwickmm/fix_potential_null_reference
...
Check for null reference before accessing property
2018-10-01 23:20:24 +02:00
Kenneth Hsu
cd538de4b9
Check for null reference before accessing property.
2018-09-29 16:49:05 -07:00
Kenneth Hsu
11689159eb
Disable warning about unreferenced field.
...
This field is unreferenced, but we might now want the object to be
disposed of by the garbage collector.
2018-09-29 13:38:11 -07:00
Kenneth Hsu
81875adcfb
Restore removed reference to system settings context.
...
This initializes some state and is IDisposable, so it is not so trivial
to remove.
2018-09-29 13:20:16 -07:00
Kenneth Hsu
9ce1e807c7
Remove unused variables and fields.
2018-09-29 10:41:27 -07:00
Kenneth Hsu
d4692e2d35
Use built-in method to expand environment variables.
...
After we removed the tilde expansion in revision c9aa6cf5fb ("Avoid
performing tilde expansion"), the Utility.ExpandEnvironmentVariables
method simply called System.Environment.ExpandEnvironmentVariables. We
can simplify the code by just referencing the built-in method directly.
2018-09-22 19:59:46 -07:00
Rune Henriksen and GitHub
0901d3f62f
Merge pull request #3387 from warwickmm/ordinal_case_insensitive_comparison
...
Use ordinal case-insensitive comparison instead of ToLower and ToUpper
2018-09-20 23:33:21 +02:00
Kenneth Hsu
0d23302220
Use ordinal case-insensitive comparison instead of ToLower.
2018-09-19 15:21:59 -07:00
Kenneth Hsu
25e2b40384
Use existing local variable to improve readability.
2018-09-18 21:52:31 -07:00
Kenneth Skovhede and GitHub
d96043007c
Merge pull request #3317 from verhoek/refactoring/ftp
...
Refactoring/ftp
2018-08-02 09:55:38 +02:00
Kenneth Skovhede
f13dbfbdde
Re-added the input debug code that apparently got lost somewhere
2018-06-30 18:48:07 +02:00
verhoek
f7a4e5164a
Reordered logic.
2018-06-29 19:46:33 +02:00
verhoek
f102646359
Fixed to desired behavior. In particular, backend tester works again for the ftp
...
backend (some backends cannot handle the default set of extended characters).
2018-06-29 19:43:42 +02:00
Kenneth Skovhede
a077808246
Fixed a few cases where the commandline tool would not write to the redirected output
2018-06-20 10:57:11 +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 Hsu
1605dc8ede
Use utility method to read from stream.
2018-06-06 19:54:45 -07: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 Hsu
afdae80716
Fix line ending issues.
2018-06-02 13:19:49 -07:00
Kenneth Hsu
e2b671bf9e
Provide missing values to format items.
2018-06-02 12:05:57 -07:00
Kenneth Skovhede and GitHub
e70f15287e
Merge pull request #3233 from warwickmm/make_fields_readonly
...
Mark fields that shouldn't be reassigned as readonly
2018-06-02 10:13:06 +02:00
verhoek
3fd6c3c602
Merge remote-tracking branch 'origin' into feature/tempdir
2018-05-26 22:55:29 +02: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
f94a58d98c
Update 'help logging' to mention --log-file-log-level and --console-log-level rather than the older --log-level
2018-05-25 09:49:53 -06:00
Kenneth Skovhede and GitHub
a7575d6bda
Merge pull request #3229 from verhoek/bugs/commandline
...
Bugfixes commandline
2018-05-24 11:28:40 +02:00