You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My application working on .NET Framework 4.7.1 needs to extract a tar file.
But System.UnauthorizedAccessException occurs while extracting tar file.
My code is like this
(The version of SharpCompress is 0.34.1)
using SharpCompress.Archives;
using SharpCompress.Common;
using (var archive = ArchiveFactory.Open(tarFilePath))
{
foreach (var entry in archive.Entries)
{
if (!entry.IsDirectory)
{
entry.WriteToDirectory(outputDirectory, new ExtractionOptions()
{
ExtractFullPath = true,
Overwrite = true
});
}
}
}
Since there is no problem with the other library 'SharpZipLib' or System.Formats.Tar(on .NET 7), I think there is no problem with access permission on the file or directory.
The text was updated successfully, but these errors were encountered:
My application working on .NET Framework 4.7.1 needs to extract a tar file.
But System.UnauthorizedAccessException occurs while extracting tar file.
My code is like this
(The version of SharpCompress is 0.34.1)
Since there is no problem with the other library 'SharpZipLib' or System.Formats.Tar(on .NET 7), I think there is no problem with access permission on the file or directory.
The text was updated successfully, but these errors were encountered: