Browse Source

Add missing return for symlink

pull/55/head
Ionite 1 year ago
parent
commit
eb762b8198
No known key found for this signature in database
  1. 2
      StabilityMatrix.Core/Helper/ArchiveHelper.cs

2
StabilityMatrix.Core/Helper/ArchiveHelper.cs

@ -241,6 +241,7 @@ public static partial class ArchiveHelper
{ {
// Not sure why but symlink entries have a key that ends with a space // Not sure why but symlink entries have a key that ends with a space
// and some broken path suffix, so we'll remove everything after the last space // and some broken path suffix, so we'll remove everything after the last space
Logger.Debug($"Checking if output path {outputPath} contains space char: {outputPath.Contains(' ')}");
if (outputPath.Contains(' ')) if (outputPath.Contains(' '))
{ {
outputPath = outputPath[..outputPath.LastIndexOf(' ')]; outputPath = outputPath[..outputPath.LastIndexOf(' ')];
@ -254,6 +255,7 @@ public static partial class ArchiveHelper
// Delete path if exists // Delete path if exists
File.Delete(outputPath); File.Delete(outputPath);
File.CreateSymbolicLink(outputPath, entry.LinkTarget); File.CreateSymbolicLink(outputPath, entry.LinkTarget);
return;
} }
catch (IOException e) catch (IOException e)
{ {

Loading…
Cancel
Save