Bond_009
4b54187b4c
Fix build
2019-09-11 21:33:57 +02:00
Bond_009
cfb1421367
Use System.Buffers Nuget package
2019-09-11 20:06:50 +02:00
Adam Hathcock
5072a0f6f5
Merge pull request #471 from adamhathcock/release-024
...
Bump version and dependencies
0.24
2019-08-20 20:36:38 +01:00
Adam Hathcock
357dff1403
Bump version and dependencies
2019-08-20 14:29:47 -05:00
Adam Hathcock
a2bd66ded8
Merge pull request #460 from itn3000/tar-fix-garbled2
...
fix filename garbling in tar(#414 )
2019-06-27 12:16:53 +01:00
itn3000
6bfa3c25a4
add more comments
2019-06-27 20:01:40 +09:00
itn3000
1ea9ab72c1
add comment for subtracting
2019-06-27 19:59:16 +09:00
itn3000
07c42b8725
replace magic number
2019-06-27 10:59:21 +09:00
itn3000
70392c32e2
use Buffer.BlockCopy for performance
2019-06-27 09:47:26 +09:00
itn3000
9b4b2a9f7c
considering encoding in processing filename( #414 )
...
modify test tar archive because it was not expected one.
(expected "тест.txt" in encoding 866, but actual is omitted upper byte)
2019-06-26 17:34:12 +09:00
Adam Hathcock
d3dd708b58
Merge pull request #457 from DannyBoyk/issue_456_zip_bounded_substreams_data_descriptors
...
Return a bounded substream when data descriptors are used in seekable zips
2019-06-04 13:42:24 +01:00
Daniel Nash
af264cdc58
Return a bounded substream when data descriptors are used in seekable zips
2019-06-04 08:31:42 -04:00
Adam Hathcock
cfd6df976f
Merge pull request #455 from DannyBoyk/issue_454_zip_bad_extra_field
...
Handle a bad extra field in a local file header in zip files
2019-06-04 09:24:55 +01:00
Daniel Nash
b2bd20b47e
Handle a bad extra field in a local file header in zip files
2019-06-03 13:02:28 -04:00
Adam Hathcock
ffea093e95
Merge pull request #453 from Lssikkes/master
...
Fix for clients failing on just having a 64 bit offset in ZIP64
2019-05-24 19:33:59 +01:00
Leroy Sikkes
78eb8fcf92
Fix for clients that don't support ZIP64 standard correctly in case headers are only pointed to in ZIP64 directory structure
2019-05-24 18:27:49 +02:00
Adam Hathcock
a052956881
Merge pull request #452 from Lssikkes/master
...
Various fixes for ZIP64 writer (zero byte entries, 32 bit where supported)
2019-05-24 16:17:48 +01:00
Lssikkes
9319ea6992
Updated ZIP64 writer to write 32 bit values to directory entries for better compatibility.
...
Support for zero byte files without corruption errors from WinRAR/7-zip
2019-05-24 16:14:30 +02:00
Adam Hathcock
4e5b70dbfa
Merge pull request #444 from eugeny-trunin/mem-opt
...
Memory and speed optimization
2019-03-20 15:13:00 +00:00
evgeny
c68eaa8397
Memory and speed optimization
2019-03-20 17:46:57 +03:00
Adam Hathcock
bbb7c85ba7
Merge pull request #442 from turbolocust/master
...
Fix: ArchiveEncoding was ignored in TarWriterOptions
2019-03-19 08:31:31 +00:00
Matthias Fussenegger
8174359228
Fix: ArchiveEncoding was ignored in TarWriterOptions
2019-03-18 18:25:00 +01:00
Adam Hathcock
acf66c5195
Merge pull request #440 from adamhathcock/release-023
...
Bump release for 0.23 and update dependencies
0.23
2019-02-27 12:57:30 +00:00
Adam Hathcock
880c9fa97a
Bump release and update dependencies
2019-02-27 12:55:16 +00:00
Adam Hathcock
e5c111f2be
Merge pull request #436 from Numpsy/populate_zip_volume_comment
...
Changes to populate ZipArchive.ZipVolumne.Comment
2019-01-14 08:14:03 +00:00
Richard Webb
4e9cd064dd
Unit test to show reading of a Zip volume/archive comment
2019-01-13 21:05:55 +00:00
Richard Webb
12a6d3977e
Return the DirectoryEndHeader from SeekableZipHeaderFactory.ReadSeekable so that it can be used by ZipArchive
2018-12-14 22:44:44 +00:00
Adam Hathcock
a95bbaf820
Merge pull request #423 from markfinal/tarsymlink
...
Tar symlink support
2018-11-05 08:31:48 +00:00
Mark Final
70bafa653b
Tar symlink extraction
...
Extended SharpCompress.Common.ExtractionOptions with a delegate to write symbolic links. If not is null, and a symbolic link is encountered, an exception is thrown.
Removed Mono.Posix.NETStandard from the library, but added to the .NET Core 2.1 test application.
Extended the test to implement the delegate.
2018-11-03 09:45:12 +00:00
Mark Final
3f4338489c
Removed unnecessary code
2018-11-01 21:57:49 +00:00
Mark Final
d91e58f2cc
Refs #248 . Refs #132 . Added a test case of a tar containing symlinks
...
This is a source archive of the MoltenVK project from github, which is my use-case for SharpCompress.
I added a test case in the project, which should extract the tar, and validate any symlink targets with what the tar thinks it ought to be.
2018-11-01 21:51:14 +00:00
Mark Final
192b9c1e8b
Ref #248 . Ref #132 . Tar reader support for symlinks for .NET standard 2 and Posix platforms
...
Extracts linkname from the tar header, and exposes this on IEntry as the LinkTarget (string) property. If an entry is not a symlink, then that property is null.
Uses Mono.Posix.NETStandard nuget to create a symlink. However, this is only applicable to .NET standard 2.0+. So far, unable to find a nuget that works for older versions.
Also, not sure what to do on Windows.
2018-11-01 21:48:51 +00:00
Adam Hathcock
0941239454
Merge pull request #417 from KyotoFox/fix-entrystream-flush
...
Allow Flush on EntryStream
2018-10-04 12:48:08 +01:00
Knut Ørland
53ad00cdc4
Use soft tabs
2018-10-04 13:13:14 +02:00
Knut Ørland
6dd5da48f7
Added test that calls EntryStream.Flush()
2018-10-04 13:08:53 +02:00
Knut Ørland
efae8328a9
Don't throw an exception when flushing an EntryStream
...
From Microsoft docs: “In a class derived from Stream that doesn't
support writing, Flush is typically implemented as an empty method to
ensure full compatibility with other Stream types since it's valid to
flush a read-only stream.”
2018-10-04 13:05:36 +02:00
Adam Hathcock
f1facc51de
Merge pull request #409 from G-Research/RecogniseEmptyTarArchives
...
Recognise empty tar archives.
2018-09-25 13:20:59 +01:00
Adam Hathcock
a471ca6a76
Use Cake tool on circle. Update test packages
2018-08-31 09:27:04 +01:00
Elliot Prior
83f6690576
Recognise empty tar archives.
...
Currently, when ArchiveFactory.Open is called on an empty tar archive, it throws due to being unable to determine the stream type. This fix allows it to recognise empty tar files by checking for whether the filename is empty, the size is empty and the entry type is defined. Add a test to try opening an empty archive.
2018-08-16 10:25:47 +01:00
Adam Hathcock
1850ea67f6
Merge pull request #408 from majoreffort/master
...
Test and fix for #407
2018-07-24 09:42:03 +01:00
majoreffort
2fd6178aa9
Fixed length in TarHeader#WriteStringBytes
2018-07-23 19:58:37 +02:00
majoreffort
ec044e6f42
Added Tar test for 100 char filename issue.
2018-07-23 19:48:01 +02:00
Adam Hathcock
bd96279649
Merge pull request #404 from MattKotsenas/bugfix/idisposable
...
Enable parallel test execution
2018-07-12 19:53:50 +01:00
Matt Kotsenas
f7ad595945
Enable test parallelization and remove garbage collection workaround
...
Now that the sources of file locking are fixed, enable test parallelization
and the forced garbage collection workaround.
Lastly, remove the `IsLocked` check because it doesn't work in a
parallel test running world - the file may be locked due to another test
running.
2018-07-12 10:33:19 -07:00
Matt Kotsenas
93c0b91de9
Refactor TestSharpCompressWithEmptyStream
...
Refactor `TestSharpCompressWithEmptyStream` so it asserts that the files
and bytes are the same.
2018-07-12 10:32:08 -07:00
Matt Kotsenas
138038b08f
Move RarReaderTests over to user ReaderFactory
...
- Refactor `RarReaderTests` to use `ReaderFactory`
- Update `ReaderTests.Read` to support Rar tests
2018-07-12 10:32:08 -07:00
Matt Kotsenas
e9a6fed607
FIXUP decouple UseReader from VerifyFiles
2018-07-11 16:53:34 -07:00
Matt Kotsenas
87a1440382
Decouple UseReader from VerifyFiles
2018-07-11 16:49:49 -07:00
Matt Kotsenas
3c2f4ebe9b
Combine ForwardOnlyStream and NonSeekableStream
...
Delete `NonSeekableStream` used in Zip64 tests in favor
of `ForwardOnlyStream` used in Mocks.
Additionally, delete the `ForwardOnlyStream.ReadByte` implementation
as the implementation on the base Stream is sufficient.
2018-07-11 16:42:03 -07:00
Matt Kotsenas
933ffe7828
Remove unused code from ArchiveTests
2018-07-11 16:33:46 -07:00