Commit graph

398 commits

Author SHA1 Message Date
Andrei Alexandrescu
32b51aed4f Merge pull request #3690 from CyberShadow/pull-20151003-171210
fix Issue 15146 - std.file.dirEntries("") only works on Windows
2015-11-15 19:44:58 -05:00
Martin Nowak
0e95f6723a Merge remote-tracking branch 'upstream/stable' into merge_stable 2015-10-27 15:55:59 +01:00
Martin Nowak
0a9f9ccc3e fixup for string-like overloads
- undocument overloads for aliased/static strings
- make std.traits helpers phobos internal
- rename isStringLike to isConvertibleToString for clearer documentation
- rename peelStringLike to convertToString
- fix a few staticMap!(selectString) uses in std.path
2015-10-26 19:50:08 +01:00
Martin Nowak
3a8a9ea793 std.file fixes for string-like types
- fixes Issue 15027
2015-10-25 21:49:57 +01:00
Martin Nowak
f35d013be1 Merge remote-tracking branch 'upstream/pr/3762' into stable 2015-10-22 15:10:57 +02:00
Rainer Schuetze
e0de691f55 removed ditto to keep overload undocumented 2015-10-22 08:16:14 +02:00
Rainer Schuetze
1573b98304 fix isDir for alias this'd strings 2015-10-22 08:13:02 +02:00
Brian Schott
c5c87895a8 Merge pull request #3716 from CyberShadow/pull-20151014-040843
Remove declarations already declared by the new Windows headers
2015-10-16 22:00:44 -07:00
Vladimir Panteleev
545bb55e76 fix Issue 15146 - std.file.dirEntries("") only works on Windows 2015-10-14 23:38:03 +00:00
Vladimir Panteleev
7c3373eacc Remove declarations already declared by the new Windows headers 2015-10-14 04:09:32 +00:00
Dragos Carp
d698887729 Remove obsolete TypeTuple references
Replace following names:
std.typetuple      -> std.meta
TypeTuple          -> AliasSeq
ParameterTypeTuple -> Parameters
FieldTypeTuple     -> Fields

std.traits requires more work than search/replace and is left unchanged.
2015-10-13 20:37:44 +02:00
Dmitry Olshansky
f9a6e0b0dd Add test for issue 14817 2015-09-12 14:44:50 +03:00
Robert burner Schadek
bdfbd56550 std.file unittest doc example
quickfur fix

another test

another deleteme

unquie -> unique
2015-09-11 11:04:19 +02:00
Jonathan M Davis
7b4abd0aa7 Move deprecations along. 2015-08-29 17:01:23 -07:00
Denis.Hlyakin
3a025da7c6 Cleanup for Issue 7648. Add Non-ASCII characters in filename for unittests. 2015-08-18 15:58:12 +03:00
Dmitry Olshansky
cc64dc38e9 Merge pull request #3486 from WalterBright/rmdirr
Range-ify std.file rmdir()
2015-07-28 08:51:08 +02:00
Yannick Koechlin
e4a596746d use UFC and nicer lambda syntax for example 2015-07-27 12:47:34 +02:00
Walter Bright
162f1cbd96 Range-ify: std.file chdir and others 2015-07-15 17:02:11 -07:00
Walter Bright
a520b819e1 Range-ify std.file rmdir 2015-07-15 16:59:57 -07:00
Dmitry Olshansky
030595bcb2 Merge pull request #3452 from WalterBright/rangedirit
Range-ify std.path.DirIteratorImpl
2015-07-10 09:16:38 +03:00
Walter Bright
ee21d0e791 Range-ify std.path.DirIteratorImpl 2015-07-09 15:31:58 -07:00
Andrei Alexandrescu
b7e9336f99 Merge pull request #3447 from WalterBright/rangeattr
Range-ify std.file attribute functions
2015-07-09 01:41:12 -04:00
Andrei Alexandrescu
fcf7cdc22b Merge pull request #3453 from WalterBright/rangecopy
Range-ify std.file.copy()
2015-07-09 00:42:07 -04:00
Vladimir Panteleev
9b6e8df513 std.file: Fix building documentation on Windows
This fixes the error:

safe function 'std.file.timeLastModified' cannot call system function 'std.file.getTimesWin!(const(char)[]).getTimesWin'
2015-07-02 19:45:22 +00:00
Walter Bright
4c5bb70ca4 Range-ify std.file.copy() 2015-06-28 17:08:38 -07:00
Walter Bright
25e5a601f8 Range-ify std.file attribute functions 2015-06-27 22:21:45 -07:00
Walter Bright
2b8e61d129 Range-ify std.file setTimes() 2015-06-22 02:08:40 -07:00
Walter Bright
785f548864 Range-ify std.file remove, getSize 2015-06-20 00:15:56 -07:00
Walter Bright
8e79049452 Range-ify std.file rename() and exists() 2015-06-18 21:09:13 -07:00
Walter Bright
d842f7d576 Range-ify std.file.write() 2015-06-18 13:40:35 -07:00
Walter Bright
223913c31b Range-ify std.file.read() 2015-06-17 15:17:21 -07:00
Andrei Alexandrescu
66c5b91587 package-shared unittest functions should not be under version(unittest) 2015-06-11 23:04:05 -07:00
Tony Tung
6f05d3bad5 Accept EISDIR as an error code for mkdir.
Older versions of Linux, older versions of FreeBSD, and current versions
of Darwin can return EISDIR to signal an existing directory[1].  Accept
that as a possible return code.

[1] http://cr.yp.to/docs/unixport.html
2015-06-02 11:26:37 -07:00
Joakim
3352c90c2e Separate linux kernel, glibc, and bionic APIs where appropriate 2015-05-27 21:54:52 -05:00
Artem Kharytoniuk
2594ed65c6 Align max chunk size on 64K boundary 2015-05-25 08:48:12 +03:00
Artem Kharytoniuk
95fd043dc6 Fix Issue 14469 - read > 4GB file on Windows x64. 2015-05-25 08:29:51 +03:00
Andrei Alexandrescu
9b9af3196a Revert "Prefer std.typecons.Flag over booleans for some Phobos arguments" 2015-05-16 18:26:55 -07:00
Matt Kline
d04ebe0baa Add comments and fixup capitalization of flags 2015-05-16 15:47:25 -07:00
Matt Kline
f6cf4b50ff Make dirEntries use Flag instead of bool 2015-05-14 00:43:06 -07:00
Walter Bright
d9a9826e55 Revert "Introducing std.meta package" 2015-05-06 14:36:45 -07:00
Dicebot
82f54a38d3 TypeTuple -> MetaList inside Phobos 2015-05-05 22:22:11 +03:00
Dicebot
73f773838d import std.typetuple -> import std.meta 2015-05-05 22:22:10 +03:00
Martin Nowak
efe9cf79a0 combine copy&paste dirEntry tests 2015-03-14 16:08:42 +01:00
Martin Nowak
c591095cfa sub/add 2 seconds from currTime instead of sleeping
- saves a total of 16 seconds unittest time
2015-03-14 16:07:49 +01:00
Andrei Alexandrescu
38802decf5 Update file.d 2015-02-10 13:12:19 -08:00
Andrei Alexandrescu
6523440d15 Merge pull request #2973 from WalterBright/listdir
document replacing D1's listdir()
2015-02-10 12:57:57 -08:00
Walter Bright
cae91b00a2 document replacing D1's listdir() 2015-02-10 02:12:33 -08:00
Andrei Alexandrescu
524efa6e76 Fix read() on posix 2015-02-04 22:08:23 -08:00
Andrei Alexandrescu
accb351b96 Merge pull request #2948 from CyberShadow/pull-20150202-045026
fix Issue 14110 - std.file.read cannot read files open for writing
2015-02-01 22:10:11 -08:00
Vladimir Panteleev
cb4463fea4 fix Issue 14110 - std.file.read cannot read files open for writing 2015-02-02 04:55:53 +00:00