Roy van Kaathoven
6e0f4ecbc9
Add password when opening RarReader
2015-10-27 18:52:06 +01:00
Adam Hathcock
9a638e7aa5
Merge pull request #97 from Icenium/natanasova/add-explicit-compressioninfo
...
Add explicit compressioninfo when writing file to zip
2015-10-01 09:33:26 -07:00
Adam Hathcock
7a11dc4385
Merge pull request #96 from Icenium/natanasova/fix-extract-options-as-flag
...
Use enum as flag correctly
2015-10-01 09:30:46 -07:00
Nadya Atanasova
66816ce390
Add explicit compressioninfo when writing file to zip
2015-10-01 17:15:37 +03:00
Nadya Atanasova
5d8bd7b69b
Use enum as flag correctly
...
Check PreserveFileTime when file times are initialized.
2015-10-01 17:02:58 +03:00
haykpetros
9bf5df72a6
Added additional check to make sure that data is properly copied to array regardless fo computer/CPU platform (little-endian or big-endian). In case of big-endian platform intermediate array will be reversed prior to copying to destination array.
2015-08-05 05:27:30 -07:00
Adam Hathcock
91fc241358
Merge pull request #82 from haykpetros/issue_79
...
Issue 79
2015-08-04 15:05:37 +01:00
haykpetros
35a8b444b8
I feel there is no need to use unsafe version, so conditional compilation has been removed and only safe version kept.
2015-08-04 03:47:09 -07:00
haykpetros
2e928e86fd
Removed unused method.
2015-08-04 03:24:59 -07:00
haykpetros
2a70ec8100
Move closing parentheses to where they should be, so build does not break for non-DEBUG configurations.
2015-08-03 13:11:13 -07:00
Adam Hathcock
05e0d591a5
Merge pull request #72 from hodm/master
...
Extract Options And Total Sizes
2015-07-27 10:07:22 +01:00
Adam Hathcock
315c138c05
Removing .NET 2.0 support and LinqBridge dies a firey death
2015-07-27 09:48:36 +01:00
hodm
b0c514d87c
Extract Options And Total Sizes
...
Fixed TotalSize For 7z
added TotalUncompressSize Tested for 7z
this enables to show progress for the entire archive
Added 2 Extract Options: PreserveFileTime And PreserveAttributes.
Put All the Log Command under DEBUG Condition.
2015-07-26 23:36:28 +03:00
Paul Newman
8faebc78d0
Cancel moved from EntryStream to Reader
...
Relates to previous commit. Following discussion with Adam, moved the Cancel() to the reader.
Example:
while (reader.MoveToNextEntry())
{
using (var data = new StreamReader(reader.OpenEntryStream()))
{
try
{
DoSomething(data.ReadLine());
}
catch
{
reader.Cancel();
throw;
}
}
}
2015-07-15 18:13:46 +01:00
Paul Newman
afff386622
Skip entry stream on dispose
...
Until now the caller had to completely consume each entry stream, or call SkipEntry(), before disposing the stream. If not, exception was thrown: "EntryStream has not been fully consumed". Hugely inconvenient; a user-thrown exception inside a "using (EntryStream)" block would be discarded.
Now automatically skips the entry on dispose.
Added method EntryStream.Cancel(). Call this if entry stream is unfinished, and no further entries are required. Helps with efficiency, as it avoids reading data that is not needed.
2015-07-15 13:44:20 +01:00
Adam Hathcock
5dd9994d34
Update for 0.11
2015-06-12 12:03:03 +01:00
Adam Hathcock
f18771904e
Made unsigned csproj for testing. Sign the main DLL again.
2015-06-12 11:59:31 +01:00
Adam Hathcock
ff1cdbfff2
Fix portable tests
2015-06-12 11:53:37 +01:00
Adam Hathcock
332d71d40d
UTF8 is the default encoding for all platforms
2015-06-12 11:37:42 +01:00
Adam Hathcock
d9c31dace8
Fixing lingering build issues
2015-06-12 11:31:04 +01:00
mrgleba
c7fc5f8819
ZipWriter: use ArchiveEncoding.Default
...
ShaprCompress is used internally in Mono to implement
System.IO.Compression, which allows the user to specify path encoding.
The change allows for specifying the encoding via
ArchiveEncoding.Default.
2015-06-11 08:36:33 +02:00
KOLANICH
83eae05e0c
Fixed oveflow Zip/Headers/ZipFileEntry.cs
2015-05-22 00:07:32 +03:00
KOLANICH
7c70a7aafd
Improved testability
...
1) disabled requirement of signature
2) added runtime discovery of folder with archives
3) disabled signing of test assembly
2015-05-22 00:00:59 +03:00
benshoof
ae1e37cde6
Added read support for RARs with Protect Headers
...
Some RARs with recovery records contain Protect Headers, I've added
support for parsing them so that RARs containing them can be read,
instead of an invalid-header exception being thrown. Parsing logic taken
from unrar reference source.
2015-05-07 18:20:05 -08:00
benshoof
5144104fef
Fixed .NET2 Release build
...
The .NET2 project only built in Debug configuration due to not including
the compilation symbol NET2 in the Release configuration.
2015-05-02 20:40:34 -08:00
Adam Hathcock
f87e6672f2
Merge pull request #51 from sander2/fix-tar.bz2-compression
...
Fixed bug where tar.bz2 compression did not work
2015-04-09 13:39:38 +01:00
Sander Bosma
3113500229
don't write trailing zero in WriteOctalBytes
...
this fixes a bug where the trailing zero of the CRC overwrote the entrytype
2015-04-07 21:43:45 +02:00
Sander Bosma
ef72829f1c
Fixed bug where tar.bz2 compression did not work
2015-04-06 17:09:55 +02:00
Sander Bosma
088644240a
Tar: Support for writing long filenames (>100 chars) using longlink
2015-04-06 14:38:57 +02:00
Adam Hathcock
065ed29600
Merge pull request #47 from norvegec/master
...
fixed: .NET2 project is not compiling
2015-03-16 11:02:46 +00:00
catester
5d6a83578c
Made the assembly CLSCompliant.
...
Added attribute [assembly: CLSCompliant(true)] and changed type of
public Crc properties from uint to long to satisfy CLS compliance.
2015-03-16 12:29:21 +02:00
Norvegec
492f64053b
fixed: .NET2 project is not compiling
2015-03-15 02:10:06 +03:00
catester
988fe5eac0
Replaced NotImplementedException for streams
...
This commit is more correct, it covers all stream types now.
2015-03-14 14:45:04 +02:00
catester
c48a47c9b2
Revert "Revert "Replaced NotImplementedException for streams""
...
This reverts commit abed9eb2c9 .
2015-03-14 14:22:55 +02:00
catester
abed9eb2c9
Revert "Replaced NotImplementedException for streams"
...
This reverts commit 391663ac67 .
2015-03-14 13:31:02 +02:00
catester
391663ac67
Replaced NotImplementedException for streams
...
Especially for streams, it is more appropriate to throw
NotSupportedException instead of NotImplementedException. Usually
consumers of streams expect NotSupportedException to handle errors.
There are other places that also use NotImplementedException but I
didn't examine them for now. I only modified stream classes in
SharpCompress.IO. For reference about this best practise, please see
these articles:
http://blogs.msdn.com/b/brada/archive/2004/07/29/201354.aspx
http://blogs.msdn.com/b/jaredpar/archive/2008/12/12/notimplementedexception-vs-notsupportedexception.aspx
2015-03-14 12:46:34 +02:00
catester
a8c055b990
Added IWritableArchive interface
...
So that when working with ArchiveFactory, you can cast the opened
archive to IWritableArchive for accessing AddEntry, RemoveEntry and
SaveTo methods without having to know what type of archive is opened
underhood. Also moved extension methods from AbstractWritableArchive to
this new interface. Also added GZipArchive to ArchiveFactory.Create as
it is one of the 3 writable archive types (zip, tar, gzip), not sure why
it was omitted.
2015-03-13 22:38:33 +02:00
Adam Hathcock
e52c183f1a
Merge pull request #40 from Strachu/master
...
Inconsistent time format
2015-01-14 14:25:57 +00:00
Strachu
62f198b532
All archive types now consistently return times as local time.
2015-01-14 14:23:59 +01:00
Hamdanil Rasyid
9770cfec9b
Fix typo
2015-01-11 17:06:02 -08:00
Adam Hathcock
e05f30308c
Merge pull request #30 from larvata/fix-zip-ansi-filename
...
Fix ansi filename decoded as gibberish in zip file
2014-12-24 17:10:30 +00:00
Adam Hathcock
6958347849
Merge pull request #32 from larvata/fix-extractAllEntires
...
Add EntryExtractionEvent for stream reader
2014-12-24 17:10:08 +00:00
larvata
0c36ff6082
Fix ansi filename decoded as gibberish in zip file
2014-12-24 13:58:29 +08:00
larvata
f78e839365
implement info-zip unicode path extra field
...
Winrar won't set 'general purpose bit flag' for unicode filename storage
but use 'extra field:Info-ZIP Unicode Path Extra Field' instead.
2014-12-24 13:51:31 +08:00
larvata
7e3f04e669
add entryExtractionEvent for stream
2014-12-22 16:34:47 +08:00
Adam Hathcock
2d237bfbca
Merge pull request #29 from arition/password_fix
...
Fix error when password is not in English
2014-12-18 23:41:35 +00:00
Adam Hathcock
e6e88dbde0
Merge pull request #28 from Strachu/tar_fix
...
Fixed bugs related to handling of .tar archives with long names
2014-12-16 14:37:09 +00:00
arition
e558a78354
Fix error when password is not in English
2014-12-16 19:47:13 +08:00
Adam Hathcock
c2df06a746
Merge pull request #27 from Strachu/rar_reorder
...
Changed the order of detecting whether the archive is in .rar format.
2014-12-16 10:51:47 +00:00
Strachu
8fcb0cb7a2
Fixed bug causing entries of non-ustar archive being after one with very long name to be discarded
2014-12-16 11:11:02 +01:00