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
{{ message }}
Repository navigation
Symlink creation not possible with TarArchive.WriteEntry(). #850
Creating a symlink with TarArchive.WriteEntry() fails with an ArgumentNullException which i think is unfounded.
Reason seems to be, that WriteEntry() expected file data where there should't be any. Creating a directory
(where there also isn't data) succeeds because there is a separate code path to handle this case. I would expect that LF_SYMLINK is also exempted.
Open the link to the reproduction at dotnetfiddle.
Run the code.
Observe that SymlinkWithArchiveClass() failed.
Expected behavior
I would expect that SymlinkWithArchiveClass() succeeds, just like the lower level example SymlinkWithStreamClass(), that directly utilized TarOutputStream, does.
This is more of a feature request, I think. TarArchive does more of the heavy lifting, but at a cost of less flexibility. It shouldn't be much of a problem to skip reading the source if the size is set to 0, though...
Activity
piksel commentedon Oct 17, 2023
This is more of a feature request, I think.
TarArchivedoes more of the heavy lifting, but at a cost of less flexibility. It shouldn't be much of a problem to skip reading the source if the size is set to0, though...