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.cs12
1 files changed, 8 insertions, 4 deletions
diff --git a/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs b/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs
index d6a3c09f5..234c58fd6 100644
--- a/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs
+++ b/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs
@@ -44,6 +44,11 @@ namespace Duplicati.Library.Backend.Tardigrade
{ "Access grant", "Access grant" },
};
+ static Tardigrade()
+ {
+ Access.SetTempDirectory(System.IO.Path.GetTempPath());
+ }
+
// ReSharper disable once UnusedMember.Global
// This constructor is needed by the BackendLoader.
public Tardigrade()
@@ -55,9 +60,6 @@ namespace Duplicati.Library.Backend.Tardigrade
public Tardigrade(string url, Dictionary<string, string> options)
{
var auth_method = options[TARDIGRADE_AUTH_METHOD];
-
- Access.SetTempDirectory(System.IO.Path.GetTempPath());
-
if (auth_method == "Access grant")
{
//Create an access from the access grant
@@ -241,7 +243,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);
}