using System;
namespace SharpCompress.Common
{
public class ExtractionOptions
{
///
/// overwrite target if it exists
///
public bool Overwrite { get; set; }
///
/// extract with internal directory structure
///
public bool ExtractFullPath { get; set; }
///
/// preserve file time
///
public bool PreserveFileTime { get; set; }
///
/// preserve windows file attributes
///
public bool PreserveAttributes { get; set; }
///
/// Delegate for writing symbolic links to disk.
/// sourcePath is where the symlink is created.
/// targetPath is what the symlink refers to.
///
public delegate void SymbolicLinkWriterDelegate(string sourcePath, string targetPath);
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");
};
}
}