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:
authorDean Ferreyra <dean@octw.com>2020-07-28 04:35:39 +0300
committerDean Ferreyra <dean@octw.com>2020-07-28 15:51:53 +0300
commit73e31a79a1c8759f2acacda0c7edb4b8a4aa6660 (patch)
tree14fc5e377035d913787acf2140d5143f1f5a356c /Duplicati/CommandLine
parente7daffcb3105c0c43770cc79084740016ba44170 (diff)
Change tests to work with long paths in Windows
Even in .NET 4.6.2 `System.IO.Compression.ZipFile.ExtractToDirectory()` cannot handle long paths. Replace call to `System.IO.Compression.ZipFile.ExtractToDirectory()` with an equivalent that extracts files to a temporary location and uses I/O functions that support long paths to move them to their final location. In CommandLineOperationsTests.cs, use ISystemIO functions to handle potentially long paths. Add a fix to RecoveryTool for long paths that was missed by #4258. This fixes #3863.
Diffstat (limited to 'Duplicati/CommandLine')
-rw-r--r--Duplicati/CommandLine/RecoveryTool/FileIndex.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Duplicati/CommandLine/RecoveryTool/FileIndex.cs b/Duplicati/CommandLine/RecoveryTool/FileIndex.cs
index afb45e42d..89fbef75b 100644
--- a/Duplicati/CommandLine/RecoveryTool/FileIndex.cs
+++ b/Duplicati/CommandLine/RecoveryTool/FileIndex.cs
@@ -74,7 +74,7 @@ namespace Duplicati.CommandLine.RecoveryTool
try
{
- var p = Duplicati.Library.Main.Volumes.VolumeBase.ParseFilename(file);
+ var p = Duplicati.Library.Main.Volumes.VolumeBase.ParseFilename(Path.GetFileName(file));
if (p == null)
{
Console.WriteLine(" - Not a Duplicati file, ignoring");