From a78d4a096f058dbc93c7bb2656b3efb9e8602641 Mon Sep 17 00:00:00 2001 From: TopperDEL Date: Thu, 18 Jun 2020 15:55:38 +0200 Subject: fix: Solve two issues with the Tardigrade-Backend --- .../Tardigrade/Duplicati.Library.Backend.Tardigrade.csproj | 8 ++++---- Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs | 12 ++++++++---- Duplicati/Library/Backend/Tardigrade/packages.config | 2 +- 3 files changed, 13 insertions(+), 9 deletions(-) (limited to 'Duplicati/Library/Backend/Tardigrade') diff --git a/Duplicati/Library/Backend/Tardigrade/Duplicati.Library.Backend.Tardigrade.csproj b/Duplicati/Library/Backend/Tardigrade/Duplicati.Library.Backend.Tardigrade.csproj index ab347b642..158277fc5 100644 --- a/Duplicati/Library/Backend/Tardigrade/Duplicati.Library.Backend.Tardigrade.csproj +++ b/Duplicati/Library/Backend/Tardigrade/Duplicati.Library.Backend.Tardigrade.csproj @@ -42,8 +42,8 @@ - - ..\..\..\..\packages\uplink.NET.2.2.2\lib\netstandard2.0\uplink.NET.dll + + ..\..\..\..\packages\uplink.NET.2.3.1\lib\netstandard2.0\uplink.NET.dll @@ -75,11 +75,11 @@ - + Dieses Projekt verweist auf mindestens ein NuGet-Paket, das auf diesem Computer fehlt. Verwenden Sie die Wiederherstellung von NuGet-Paketen, um die fehlenden Dateien herunterzuladen. Weitere Informationen finden Sie unter "http://go.microsoft.com/fwlink/?LinkID=322105". Die fehlende Datei ist "{0}". - + \ No newline at end of file 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 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); } diff --git a/Duplicati/Library/Backend/Tardigrade/packages.config b/Duplicati/Library/Backend/Tardigrade/packages.config index b0460fc91..1f22522a3 100644 --- a/Duplicati/Library/Backend/Tardigrade/packages.config +++ b/Duplicati/Library/Backend/Tardigrade/packages.config @@ -1,4 +1,4 @@  - + \ No newline at end of file -- cgit v1.2.3 From b9c22afdbe5efef652f0d9b7a223d10cd6e1b53e Mon Sep 17 00:00:00 2001 From: TopperDEL Date: Thu, 18 Jun 2020 16:46:08 +0200 Subject: fix: Use the duplicati-temp-folder --- Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Duplicati/Library/Backend/Tardigrade') diff --git a/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs b/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs index 234c58fd6..071c1f9b1 100644 --- a/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs +++ b/Duplicati/Library/Backend/Tardigrade/TardigradeBackend.cs @@ -46,7 +46,7 @@ namespace Duplicati.Library.Backend.Tardigrade static Tardigrade() { - Access.SetTempDirectory(System.IO.Path.GetTempPath()); + Access.SetTempDirectory(Library.Utility.TempFolder.SystemTempPath); } // ReSharper disable once UnusedMember.Global -- cgit v1.2.3