Commit graph

64 commits

Author SHA1 Message Date
David Eagen
da33d8b0ab Document how to use std.zip to create a zip file. 2015-04-07 23:54:03 -05:00
Martin Nowak
f6a1ca8932 add introductory example to std.zip 2015-04-01 00:12:46 +02:00
rsw0x
71f430790e Update zip.d
These bugs are marked as FIXED.
2015-02-13 20:11:05 -05:00
k-hara
611a9a1b9b fix property enforcement 2015-02-10 01:00:36 +09:00
k-hara
e7b3d834d7 detab and remove trailing whitespaces 2015-02-10 00:56:40 +09:00
fgda
8ef18e640c Expanded the unittest to test if packing and unpacking produces the original, quite random data 2015-01-27 10:27:12 +01:00
fgda
8cc228c4e9 Fix Issue 2138 - Allow more than 65535 files in Zip archives
Fixed by adding support for reading and writing Zip64 archives
2015-01-26 20:34:45 +01:00
Ilya Yaroshenko
f807525143 std.zip: clean imports 2014-11-14 17:21:31 +03:00
Geod24
0fb95b8c27 Usage of WEB macro for License everywhere 2014-10-15 11:30:42 +02:00
Andrej Mitrovic
4bdd5f2c6a Merge pull request #1870 from MartinNowak/fix1832
fix Issue 1832 - rebuilding ZipArchive looses data
2014-02-16 21:01:54 +01:00
SHOO
c42bb8f593 Fix Issue 12003 - std\zip.d(421): Deprecation 2014-01-26 23:13:49 +09:00
Martin Nowak
1a3f9ab273 fix Issue 1832 - rebuilding ZipArchive looses data
- Already need to set compressedData slice when reading
  the directory index not only during expand.
2014-01-18 23:29:18 +01:00
David Nadlinger
9965173d33 Remove duplicate ArchiveMember.madeVersion() property.
This fixes a build-breaking issue introduced by
9bcb99fee1.
2014-01-15 22:49:49 +01:00
AndrewEdwards
9bcb99fee1 Merge branch '2.065'
Conflicts:
	posix.mak
2014-01-15 13:06:42 -05:00
Johannes Pfau
0fe597019b Don't do unaligned accesses 2014-01-14 21:00:28 +01:00
Martin Nowak
a087fcb2c3 fix Issue 11831 - std.zip no longer allows setting madeVersion field
- add deprecated ref accessor
2014-01-02 18:34:30 +01:00
Martin Nowak
eac5ec14d2 fix Issue 11831 - std.zip no longer allows setting madeVersion field
- add deprecated ref accessor
2013-12-28 02:55:28 +01:00
Martin Nowak
c445f1c288 Merge pull request #1766 from jmdavis/deprecations
Move various deprecations along.

Conflicts:
    std/algorithm.d
    std/zip.d
2013-12-19 23:33:47 +01:00
Martin Nowak
6ceef71172 Revert "Merge pull request #1751 from dawgfoto/std_zip"
This reverts commit 67933fda95.
2013-12-19 19:05:53 +01:00
monarch dodra
67933fda95 Merge pull request #1751 from dawgfoto/std_zip
[install,regression] fix Issue 11692 - can't set file attributes for std.zip.ArchiveMember
2013-12-19 09:56:16 -05:00
monarch dodra
11f3b0f721 Merge pull request #1775 from MartinNowak/std_zip3
fix adding an ArchiveMember to another ZipArchive
2013-12-16 05:22:29 -08:00
monarch dodra
afc6b1a5ee Merge pull request #1774 from MartinNowak/std_zip2
fixup deprecation of externalAttributes
2013-12-15 00:52:35 -08:00
monarch dodra
42c151df49 Merge pull request #1771 from MartinNowak/std_zip
mark std.zip classes as final
2013-12-14 13:59:03 -08:00
Martin Nowak
5abd7d2d40 add @safe pure nothrow 2013-12-14 22:39:13 +01:00
Martin Nowak
b981c18bfc fix adding an ArchiveMember to another ZipArchive 2013-12-14 20:14:07 +01:00
Martin Nowak
f1261a21fb fixup deprecation of externalAttributes
- directly access private member internally
- only deprecate the property
2013-12-14 19:59:56 +01:00
Martin Nowak
baf7334518 mark std.zip classes as final 2013-12-13 15:04:57 +01:00
Martin Nowak
dc25d2d14a fix fileAttributes for Posix 2013-12-13 02:08:31 +01:00
jmdavis
efd6ea0cbf Move various deprecations along. 2013-12-11 23:44:12 -08:00
Martin Nowak
30433e4e27 add deprecation message 2013-12-06 01:11:50 +01:00
Martin Nowak
136cf72de1 add a set time overload which takes a SysTime
- This makes setting the time compatible
  with DirEntry time types.
2013-12-06 01:04:38 +01:00
Martin Nowak
463e5d803b fix Issue 11692 - can't set file attributes for std.zip.ArchiveMember
- Document fileAttributes and set the internal _madeVersion
  according to the encode attribute type.

- deprecate direct access to the externalAttributes field
2013-12-06 00:56:37 +01:00
Martin Nowak
a700a2a572 remove trailing whitespace 2013-12-05 23:52:07 +01:00
Martin Nowak
ab5cdb26f8 reorganize members
- avoid padding holes (class size 144 byte -> 132 byte)
- move less important attribute members to the bottom
2013-12-05 23:51:45 +01:00
k-hara
794e0f73ac fix property enforcement 2013-11-25 15:40:01 +09:00
Andrea Fontana
83f318526f Fixed comments after guidelines 2013-11-20 22:56:11 +01:00
Andrea Fontana
afe4570e71 Fixing spaces/tabs 2013-11-20 00:02:24 +01:00
Andrea Fontana
e7a681991b Fixed as suggested by Martin 2013-11-19 23:54:00 +01:00
Andrea Fontana
1fc7a86f16 Exception -> ZipException 2013-11-19 19:13:01 +01:00
Andrea Fontana
15d62a12b0 Add some properties and enum 2013-11-19 19:03:08 +01:00
Andrea Fontana
95af4e3c8c Fixed phobos bug 1832 2013-11-17 09:40:33 +01:00
k-hara
28dedee456 Issue 7444 - Require [] for array copies too 2012-11-20 17:55:21 +09:00
David
9f67ad2096 fixed wrong headers for decompression
In some archives the headers for each indivdual `ArchivMember` are incomplete.
And these incomplete headers would overwrite the actual headers with `0` which
results in a `ZlibException` (since `compressedSize` and `expandedSize` are `0`)
2012-08-25 17:06:37 +03:00
Andrei Alexandrescu
d061f13d34 https://github.com/D-Programming-Language/phobos/pull/23 2011-05-01 12:11:46 -05:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
Brad Roberts
ee7c5e44a5 fix %.*s usage in std/zip.d 2011-01-30 00:44:24 -08:00
Jonathan M Davis
d8488a9865 Phobos has now been changed to use std.datetime. Also, bug# 3848 has been fixed.
std.gregorian, std.date, and std.dateparse have all been marked as
scheduled for deprecation. Everywhere (except for std.file) which was
using std.date is now using std.datetime. std.file is now using
std.datetime but has a number of functions still using d_time but which
are marked as scheduled for deprecation. I tried to give as many as I
could pragmas indicating that they were scheduled for deprecation, but
at the moment, that requires that a function be a templated function, and
I couldn't templatize all of them. So, some functions in std.file are
only marked as scheduled for deprecation in their documentation and will
not give any warning on compilation.

I had to rename several functions in std.file in order to avoid making
any breaking changes. And since I was already having to mess with
function names, it seemed like a good time to change the names of a
number of the functions in std.file to use proper capitalization
(such as changing isdir to isDir) as has been discussed and overwhelmingly
supported in the newsgroup with regards to std.string. And since I was
making those changes, it seemed like a good time to fix bug# 3848
(functions in std.file don't take symbolic links into account) as well.
So, std.file should now deal with symlinks properly.

The issue which Andrei brought up with +VERSION causing the std.datetime
unit tests to fail on OSX has been fixed as well.
2011-01-19 11:10:18 +00:00
Andrei Alexandrescu
3f2b8c12ea 64-bit compatibility work 2010-08-22 20:55:22 +00:00
Walter Bright
cf7c817ca7 socket unittest failure workaround 2010-03-15 21:37:54 +00:00
Sean Kelly
747f3cf1e4 Changed Phobos to use the Boost license. Currently, all public domain modules and all licensed modules by Walter, Andrei, Bartosz, and Don have been changed to use this license (excepting std.c, for the moment). Ideally, all Phobos modules will eventually be distributed under this license, which means obtaining permission from a few more authors, deleting, or rewriting some modules.
Removed std.openrj.
2009-09-16 18:19:51 +00:00