Commit graph

657 commits

Author SHA1 Message Date
Jack Stouffer
323a3aed9d [std.file] Removed global std.exception import 2016-07-08 09:04:20 -04:00
Jack Stouffer
bb13820459 [std.file] Removed global std.conv and std.path imports 2016-07-08 09:04:10 -04:00
Walter Bright
8ed6280d79 Merge pull request #4456 from JackStouffer/slurp
Improved docs for std.file.slurp
2016-07-03 13:46:13 -07:00
Jack Stouffer
85860b7a5a Fixed local imports in std.file 2016-06-30 18:07:00 -04:00
Jack Stouffer
a8847ee31f Improved docs for std.file.slurp 2016-06-30 10:46:27 -04:00
Dmitry
b63d98cbc2 Added some spaces (std.file documentation)
Few code formatting of the documentation's example, for more readable

Update file.d
2016-06-30 18:18:42 +06:00
Walter Bright
b4867627dc std.file: delete is not @safe 2016-06-28 19:24:03 -07:00
Walter Bright
8fa1a9c7af std.file - fix for stricter @safe rules 2016-06-18 23:11:38 -07:00
Sebastian Wilzbach
ec47ac4224 Remove the WEB macro in favor of HTTP
replacement: sed 's/\$(WEB/\$(HTTP/g' -i **/*.d
2016-06-16 00:14:51 +02:00
Vladimir Panteleev
79f5457c60 std.file: Simplify readText example 2016-06-05 14:39:39 +00:00
Sebastian Wilzbach
2dfbc51f17 Standardize whitespace after imports
Unified with:

sed -E "s/import\s*([^ ]+)\s*:\s*(.*(,|;))/import \1 : \2/" -i **/*.d
2016-05-29 22:09:56 +02:00
anonymous
764caefa36 XREF -> REF (sed)
Done by:

(find . -type f -name "*.d" -print0; \
    find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r \
    's/\$\(XREF\s+([^(),]*),\s*([^(),]*)\)/$(REF \2, std,\1)/g'
2016-05-27 21:32:46 +02:00
Sebastian Wilzbach
18b8abf60a remove the deprecated wiki macros 2016-05-27 05:52:23 +02:00
Vladimir Panteleev
38a6370788 Merge pull request #4303 from wilzbach/mref_phobos
use mref macro instead of link2
2016-05-24 03:12:08 +03:00
Joakim
d965b1aa64 Fix Android regressions: make sure all tests don't use the local directory and no unzip 2016-05-16 21:57:17 +05:30
Sebastian Wilzbach
89a2dd5f11 use mref macro instead of link2 2016-05-16 03:30:08 +03:00
Jack Stouffer
e216108eb2 Fixed long lines in std/file.d 2016-05-10 20:51:39 -04:00
Dmitry Olshansky
95e8b69d11 Merge pull request #4276 from nykytenko/master
Solaris: corrected getcwd call.
2016-05-07 16:57:51 +04:00
Ilya Yaroshenko
d0ef84f04a Merge pull request #4107 from BBasile/issue-11791
fix issue 11791 - std.file.write failed to write huge files
2016-05-06 08:01:13 +02:00
Basile Burg
2ff9afaeee fix issue 11791 - std.file.write failed to write huge files 2016-05-06 02:55:18 +02:00
Oleg Nykytenko
6dca37630f Solaris: getcwd buffer size changed. 2016-05-05 09:01:34 +03:00
Oleg Nykytenko
b7459ecbf8 Solaris: corrected getcwd call. 2016-05-02 20:48:51 +03:00
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