Nadya Atanasova
5d8bd7b69b
Use enum as flag correctly
...
Check PreserveFileTime when file times are initialized.
2015-10-01 17:02:58 +03: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
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
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
KOLANICH
83eae05e0c
Fixed oveflow Zip/Headers/ZipFileEntry.cs
2015-05-22 00:07:32 +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
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
088644240a
Tar: Support for writing long filenames (>100 chars) using longlink
2015-04-06 14:38:57 +02: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
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
Strachu
62f198b532
All archive types now consistently return times as local time.
2015-01-14 14:23:59 +01: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
Strachu
2e533f9fb5
Fixed handling of ustar tar files with long names.
2014-12-15 21:13:57 +01:00
Strachu
3147ee0f14
Exposed modification time for .7z archives
2014-12-15 20:26:26 +01:00
Adam Hathcock
6e05a20136
Support file sizes larger than int.MaxValue
2014-10-24 09:39:59 +01:00
Adam Hathcock
505f435f5d
Renamed LinqBridge to .NET 2.0 target.
...
Cleaned up some cross-versioning code.
2014-04-15 09:36:05 +01:00
Bastian Eicher
8c3d260d7c
Added .NET 2.0 version (with LinqBridge)
2014-03-18 14:45:48 +01:00
Adam Hathcock
71e86cd7e4
Added explicit checks for multi-volume encrypted archives to throw an error
2014-02-01 10:29:01 +00:00
Adam Hathcock
c64a96398d
RarArchives now have password support
2014-02-01 09:01:15 +00:00
Adam Hathcock
2100d49cef
Little more clean up
2013-12-23 12:29:41 +00:00
Adam Hathcock
66ffc82d41
Entries don't have FilePaths, they have keys
2013-12-23 12:20:06 +00:00
Adam Hathcock
e58ec599f0
Cleaning up some FileInfo non-usage and fixing tests.
2013-12-23 12:15:57 +00:00
Adam Hathcock
4eda2043df
Moved ExtractTo to common logic
2013-12-23 11:42:08 +00:00
Adam Hathcock
afd65a7505
Removed unimplemented Close
2013-12-23 11:12:07 +00:00
Adam Hathcock
84ed6bc7f0
More Can* implemented
2013-12-19 11:05:39 +00:00
Adam Hathcock
fe8c6aec5f
Ensure adding always disposes
2013-12-15 11:16:48 +00:00
Adam Hathcock
21aa57945d
Fix for byte counting
2013-11-23 11:10:07 +00:00
Adam Hathcock
1d0c7b6445
Added work around for invalid extended time format
...
https://sharpcompress.codeplex.com/workitem/42
2013-10-19 13:28:33 +01:00
Adam Hathcock
404fa8c62d
AES zip decryption works
2013-07-27 12:06:54 +01:00
Adam Hathcock
f367f489eb
Adding bouncy castle crypto for portable (and metro)
2013-07-20 11:46:37 +01:00
Adam Hathcock
d78677186b
Refactor crypto out of MarkingBinaryReader into RarCrypto specific class. Remove functionality from portable build to make it work.
2013-07-16 16:53:00 +01:00
Hamdanil Rasyid
430263b672
More style adjustment
2013-07-16 22:19:41 +08:00
Hamdanil Rasyid
cc902bcb2d
Style issue and access modifiers
2013-07-16 22:17:15 +08:00
Hamdanil Rasyid
c7f6b506b5
Use faster implementation of SHA1
2013-07-16 00:17:24 +08:00
Hamdanil Rasyid
1ab89ba59c
Cleanup
2013-07-16 00:04:54 +08:00
Hamdanil Rasyid
3370fadbd1
Refactor all cryptography codes to RarRijndael
2013-07-15 23:43:26 +08:00
Hamdanil Rasyid
a73c831647
Refactor initialization codes into one class
2013-07-15 23:29:24 +08:00
Hamdanil Rasyid
37c4665630
Make password a parameter
2013-07-15 00:35:35 +08:00
Hamdanil Rasyid
ab19dedf1f
Fix bug when ignoring offset
2013-07-14 23:20:43 +08:00
Hamdanil Rasyid
34190f6576
Code tidyness
2013-07-14 19:09:33 +08:00