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:
Diffstat (limited to 'Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs')
-rw-r--r--Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs b/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs
index 4e33fe585..c74092344 100644
--- a/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs
+++ b/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs
@@ -267,7 +267,9 @@ namespace Duplicati.Library.Backend.Tardigrade
foreach (var obj in objects.Items)
{
TardigradeFile file = new TardigradeFile(obj);
- file.Name = file.Name.Replace(GetBasePath(), "");
+ var basePath = GetBasePath();
+ if (basePath != "")
+ file.Name = file.Name.Replace(basePath, "");
files.Add(file);
}