Commit graph

544 commits

Author SHA1 Message Date
Basile Burg
8ab8b1fa4a rather check if stripped line is empty 2018-08-25 22:34:24 +02:00
Basile Burg
9ca114d141 fix issue 11431 - std.file.slurp fails with Windows newlines 2018-08-25 19:36:34 +02:00
The Dlang Bot
53fc9912a6
Merge pull request #5755 from FreeSlave/public_statTimeToStdTime
Make statTimeToStdTime public
merged-on-behalf-of: unknown
2018-07-15 12:47:32 +02:00
Roman Chistokhodov
732e2ab434 Make safe unittest 2018-06-15 22:51:58 +03:00
Walter Bright
beba2bea7f file: add scope 2018-06-09 22:34:52 -07:00
Walter Bright
32d5038b56 file.d: don't leak file names 2018-06-08 13:02:39 -07:00
Roman Chistokhodov
40297000ee Make stat_t time functions auto ref templated 2018-06-05 14:55:03 +03:00
The Dlang Bot
a56ae8026b
Merge pull request #6542 from wilzbach/underscore
Remove a few cases of underscore escaping
merged-on-behalf-of: Steven Schveighoffer <schveiguy@users.noreply.github.com>
2018-06-04 22:29:52 +02:00
Roman Chistokhodov
31c123fda2 Add public time functions that accept stat_t 2018-06-04 15:51:13 +03:00
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
Sebastian Wilzbach
f9cd2af795 Fix Issue 18752 - std.file.read runnable example fails 2018-06-02 16:48:57 +02:00
The Dlang Bot
e13e3889ac
Merge pull request #6435 from JackStouffer/input-range-link
Make references to input ranges a link to isInputRange
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-04-15 01:42:45 +02:00
RazvanN7
0369df5584 Fix double initialization of field errno in std/file.d 2018-04-12 17:57:18 +03:00
Jack Stouffer
e14f89e170 Make references to input ranges a link to isInputRange 2018-04-08 16:19:57 -04:00
Roman Chistokhodov
9215b48ea3 Add timeStatusChanged documentation comment 2018-04-08 16:37:57 +03:00
MetaLang
92ecb29edd
Fix typo 2018-04-07 22:10:22 -03:00
Jack Stouffer
60e5f06709 Link all references of FileException 2018-04-07 20:30:39 -04:00
Jack Stouffer
7478c44d12 Added Params and Returns sections to all ddocs in std.file 2018-04-07 20:08:30 -04:00
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Sebastian Wilzbach
a961d665b7 Fix spurious build failures in std.file by using more unique test
directories
2018-03-26 08:59:55 +02:00
Sebastian Wilzbach
3e0906d482 mkdir with an non-existent directory throws a WindowsException on Windows 2018-03-22 17:05:55 +01:00
Sebastian Wilzbach
d46ccb3c06 Limit setAttributes unittest to Posix 2018-03-22 16:32:37 +01:00
Sebastian Wilzbach
bba5ead362 Fix std.file unittests for auto-tester 2018-03-22 15:22:21 +01:00
Sebastian Wilzbach
0b153a2884 Add public examples to std.file + enable DScanner check 2018-03-22 01:46:57 +01:00
The Dlang Bot
ba11d630a0
Merge pull request #6252 from JackStouffer/issue18158
Fix Issue 18158 - std.file.getcwd should be usable in @safe
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-03-11 19:08:25 +01:00
Jonathan M Davis
1436fca1cc Add website link to author name for Jonathan M Davis. 2018-03-10 16:31:23 -07:00
Jack Stouffer
767d1c51d4 Fix Issue 18158 - std.file.getcwd should be usable in @safe 2018-03-07 16:14:42 -05:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
Jonathan M Davis
5d52a81e4d Fix issue 15949: Make readText check BOMs.
This makes it so that readText checks for a BOM. If there is a BOM, it
is for UTF-8, UTF-16, or UTF-32, and it doesn't match the requested
string type, then a UTFException is thrown. Other encodings are let
through in case they happen to work with the requested string type and
pass UTF validation.

Also, this makes it so that readText checks the alignment of the buffer
against the requested string type and throws a UTFException instead of
letting the cast throw an Error.
2018-02-10 19:53:29 -07:00
Timothee Cour
f3e9c89aae
fix doc inaccuracy in dirEntries
cf FORUM: dirEntries returns relative, not absolute paths
2018-02-06 13:45:28 -08:00
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
RazvanN7
fa52c3f709 Fix erroneous imports in unittests 2018-01-23 13:10:34 +02:00
Jack Stouffer
9d8a331e40 address Andrei's review 2018-01-03 14:40:10 -05:00
Jack Stouffer
3eadd0095e Merge branch 'file-overflow' of https://github.com/WalterBright/phobos into file-overflow 2018-01-03 13:16:52 -05:00
Joakim
ee4036a53a Use the Posix TMPDIR logic, as D can be used from the command-line too on Android. 2017-12-22 18:42:35 +05:30
Diederik de Groot
31ca73d58d
Port of phobos to DragonFlyBSD
Notes:
- FIXME message related to dragonfly malloc issue (issue reported on upstream dragonfly issue database)
2017-12-20 08:05:49 +01:00
Jonathan M Davis
fc86ca916e Fix issue 17962: dirEntries is truncating Unicode file names. 2017-11-05 18:56:32 -07:00
Alexandru Jercaianu
d30cda8feb impl is initialized only in constructor 2017-10-07 15:39:37 +03:00
Alexandru Jercaianu
7f6ce8026f added safe in the stddoc block 2017-10-07 12:41:08 +03:00
Alexandru Jercaianu
b7f8edd630 safe at toplevel; replaced strlen with countUntil 2017-10-07 10:57:56 +03:00
Alexandru Jercaianu
daa79a5b03 removed unused lstatbuf 2017-10-05 13:23:50 +03:00
Alexandru Jercaianu
5e88b67808 minor code refactoring 2017-10-05 13:20:39 +03:00
Alexandru Jercaianu
0ff1cfe045 Safe for windows 2017-10-01 11:38:58 +03:00
Alexandru Jercaianu
aac8e8d7d9 DirIterator is safe 2017-09-30 19:57:30 +03:00
wolframw
0a434259c0 Fix documentation for std.file
Corrected typos and added $(D) where necessary. Added underscores to
non-identifier tokens which weren't properly prefixed (and were
therefore wrongly hightlighted in the docs).
2017-07-25 21:57:12 +02:00
Sebastian Wilzbach
cf7766c1a9 Make std.file examples runnable 2017-07-09 16:22:53 +02:00
Vladimir Panteleev
2e6c52d02f
std.file: Unify dirEntries overloads' documentation 2017-07-07 17:33:29 +00:00
Vladimir Panteleev
4697a127c2
Update a missed dirEntries overload (fixup for #5569) 2017-07-07 16:31:57 +00:00
Vladimir Panteleev
efd740e551
Improve documentation of std.file.SpanMode (issue 8680)
This clarifies the terminology used for describing the iteration order
of dirEntries, as the current terminology has been found misleading.
2017-07-07 15:39:28 +00:00
Vladimir Panteleev
657339069c Fix broken links 2017-07-06 19:15:31 +02:00