From 538b38869fde43b90a1b6fde748cd4512b318f9b Mon Sep 17 00:00:00 2001 From: RealOrko <> Date: Thu, 21 May 2020 13:00:25 +0100 Subject: [PATCH] Added a warning for the writing of symbolic links with a link to the original GitHub issue for the DOTNET runtime --- src/SharpCompress/Common/ExtractionOptions.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/SharpCompress/Common/ExtractionOptions.cs b/src/SharpCompress/Common/ExtractionOptions.cs index 7f6e1efc..ef9848af 100644 --- a/src/SharpCompress/Common/ExtractionOptions.cs +++ b/src/SharpCompress/Common/ExtractionOptions.cs @@ -1,4 +1,6 @@ -namespace SharpCompress.Common +using System; + +namespace SharpCompress.Common { public class ExtractionOptions { @@ -29,6 +31,10 @@ /// public delegate void SymbolicLinkWriterDelegate(string sourcePath, string targetPath); - public SymbolicLinkWriterDelegate WriteSymbolicLink; + public SymbolicLinkWriterDelegate WriteSymbolicLink = + (sourcePath, targetPath) => + { + Console.WriteLine($"Could not write symlink {sourcePath} -> {targetPath}, for more information please see https://github.com/dotnet/runtime/issues/24271"); + }; } } \ No newline at end of file