mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-04-06 06:01:12 +00:00
oops, wrong change made
This commit is contained in:
@@ -26,7 +26,7 @@ public static class IWritableArchiveExtensions
|
||||
{
|
||||
var fileInfo = new FileInfo(filePath);
|
||||
writableArchive.AddEntry(
|
||||
Path.GetFileName(filePath),
|
||||
filePath.Substring(directoryPath.Length),
|
||||
fileInfo.OpenRead(),
|
||||
true,
|
||||
fileInfo.Length,
|
||||
|
||||
@@ -29,7 +29,7 @@ public static class IWritableAsyncArchiveExtensions
|
||||
var fileInfo = new FileInfo(filePath);
|
||||
await writableArchive
|
||||
.AddEntryAsync(
|
||||
Path.GetFileName(filePath),
|
||||
filePath.Substring(directoryPath.Length),
|
||||
fileInfo.OpenRead(),
|
||||
true,
|
||||
fileInfo.Length,
|
||||
|
||||
Reference in New Issue
Block a user