Commit graph

435 commits

Author SHA1 Message Date
Sebastian Wilzbach
5a8988c149 style fix: add space after for operator 2016-04-27 02:04:02 +03:00
Sebastian Wilzbach
3d67cd228c style fix: space between operators 2016-04-26 22:26:20 +03:00
anonymous
863b251162 smoothen out differences between readLink and symlink
ElementType -> ElementEncodingType
template constraints -> static if
2016-04-26 15:25:56 +02:00
anonymous
831ddccdae code formattting 2016-04-26 15:25:56 +02:00
anonymous
dce9175467 rangify readLink and symlink
Removing @safe from the signatures so that attribute inference takes
care of things. There are @safe unittests already, ensuring that the
functions themselves don't do anything unsafe.

Replacing @trusted declarations with @trusted function literals. This
way it's more clear that the specific call is @trusted, not the called
function.
2016-04-26 15:25:56 +02:00
Dmitry Olshansky
29b0c559f7 Merge pull request #4089 from CyberShadow/pull-20160316-181610-std-file-subsecond
fix Issue 15803 - std.file should support sub-second file time precision on POSIX
2016-04-23 03:20:40 +04:00
Vladimir Panteleev
fad1388199 fix Issue 15865 - std.file.copy(from,to) deletes the file if from and to specify the same file
Stat the target fd and check for sameness before truncating the file.
2016-04-04 14:17:06 +00:00
JakobOvrum
99651dc92e Merge pull request #2011 from CyberShadow/fix12368
fix Issue 12368 - std.file.write conflicts with std.stdio.write
2016-03-28 03:10:23 +09:00
Basile Burg
45d15b9f05 fix issue 15658 - UFCS used in isFile conflict with DirEntry member 2016-03-23 21:45:09 +01:00
Dmitry Olshansky
580d72f3b3 Merge pull request #4096 from CyberShadow/pull-20160320-045544
std.file: Clarify documentation of mkdirRecurse when target exists
2016-03-21 11:30:35 +04:00
Martin Nowak
4ee0a9df3c Merge pull request #4100 from tmccombs/read-alloc-upto
Don't allocate more than upTo bytes in std.file.read
2016-03-21 00:40:48 +01:00
Thayne McCombs
832928adaf Don't allocate more than upTo bytes in std.file.read
Fixes Issue 7972
2016-03-20 14:33:04 -06:00
Vladimir Panteleev
f467b4d9fc std.file: Clarify documentation of mkdirRecurse when target exists
As verified by the unittest below.
2016-03-20 11:18:58 +00:00
Vladimir Panteleev
28211cb22d std.file: Use utimensat when available 2016-03-17 00:47:11 +00:00
Vladimir Panteleev
c3f0469b2b fix Issue 15803 - std.file should support sub-second file time precision on POSIX 2016-03-16 20:57:49 +00:00
Nikolay Tolstokulakov
eff74ed2a2 netbsd patch 2016-03-11 10:10:47 +06:00
Mahdi Mohammadi
da82a23856 Better description for return value of exists 2016-02-29 18:10:24 +08:00
H. S. Teoh
5c53be7676 Merge pull request #3977 from joakim-noah/android
Android update
2016-02-23 13:51:42 -08:00
Steven Schveighoffer
b0acb7a394 Fix remaining import deprecation messages 2016-02-22 16:03:12 -05:00
Joakim
10c01a0614 On Android, update std.datetime to extract timezone data and some other fixes. 2016-02-10 14:25:42 +05:30
Vladimir Panteleev
c9c31287dd Merge pull request #3965 from aG0aep6G/setTimes
remove @safe from template setTimes
2016-02-03 19:17:01 +00:00
anonymous
f1f00e190d fix documentation for symlink
The target path is actually relative to the link, not to the current
working directory. This is in line with the ln shell command, so changing
the documentation to match the behavior seems in order.

Also changing some wording, and un-highlighting "symlink" throughout as
it never refers to the function.
2016-02-03 15:25:33 +01:00
anonymous
81b15b7011 remove @safe from template setTimes
Letting attribute inference take care of things. Making a unittest @safe
to ensure that setTimes itself doesn't do anything unsafe.
2016-02-03 15:24:35 +01:00
aG0aep6G
40a1713eeb fix broken link 2016-01-21 01:48:23 +01:00
Vladimir Panteleev
458c1ceb35 fix Issue 12379 - Add toFile function which writes its first argument to a file 2016-01-13 12:29:18 +00:00
JakobOvrum
8e38e62485 Merge pull request #3853 from 9rnsr/fix12359
Fix for issue 12359
2016-01-06 02:37:52 +01:00
Benjamin L. Merritt
5f08c058ab Changed "Examples:" in Ddoc to "Example:" 2015-12-17 18:32:41 -08:00
k-hara
e864e53adc fix property enforcement 2015-12-04 15:42:53 +09:00
k-hara
d7fdf6991f fix imports 2015-12-03 23:23:03 +09:00
Robert burner Schadek
2c78a472e0 std.file whitespace fix
I merged a comment only PR that added a litte bit of doc.
It containted whitespace at the end.

This PR removes that whitespace.
2015-11-25 21:51:01 +01:00
Lance Bachmeier
0c8c51c952 Update file.d 2015-11-24 10:42:47 -06:00
Lance Bachmeier
5aec7996e2 Update file.d 2015-11-20 11:35:53 -06:00
Blumerline
c1333caf69 Fix issue 15319 - broken import in std.file.copy 2015-11-19 13:30:35 +01:00
Brian Schott
4b57ad66e6 Merge pull request #3816 from lionello/doc_warnings
Fixed some doc warnings
2015-11-16 18:04:35 -08:00
Brian Schott
3b90461984 Merge pull request #3814 from CyberShadow/pull-20151116-000847
std.file: Update dirEntries documentation regarding path==""
2015-11-16 17:39:03 -08:00
Lionello Lunesu
be227ef595 Fixed some doc warnings 2015-11-17 09:21:52 +08:00
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
Vladimir Panteleev
bf0fe11936 std.file: Update dirEntries documentation regarding path=="" 2015-11-16 00:09:43 +00: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