Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTopperDEL <github_com@tparth.de>2020-07-22 13:40:21 +0300
committerTopperDEL <github_com@tparth.de>2020-07-22 13:40:21 +0300
commit6a8a029c702424629f4d708230d47a6c28dacc5c (patch)
treebbf4492fc4c997680fa924bd07104394efe99c49 /Duplicati/Library/Backend/Tardigrade
parent512aa9b979ac96b67603725c597d76c0d0c1078f (diff)
cleanup: Reduce one line
Diffstat (limited to 'Duplicati/Library/Backend/Tardigrade')
-rw-r--r--Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs b/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs
index 165e07673..ab077ce04 100644
--- a/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs
+++ b/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs
@@ -268,9 +268,8 @@ namespace Duplicati.Library.Backend.Tardigrade
foreach (var obj in objects.Items)
{
TardigradeFile file = new TardigradeFile(obj);
- var basePath = GetBasePath();
- if (basePath != "")
- file.Name = file.Name.Replace(basePath, "");
+ if (prefix != "")
+ file.Name = file.Name.Replace(prefix, "");
files.Add(file);
}