Commit graph

657 commits

Author SHA1 Message Date
The Dlang Bot
43be36c179
Merge pull request #6790 from joakim-noah/stable
Android and AArch64: tweak tests that trip
merged-on-behalf-of: unknown
2018-12-18 03:26:39 +01:00
Nathan Sashihara
6ffd4e7f28 Replace imports of core.sys.windows.windows to speed up compilation 2018-12-17 21:03:31 -05:00
Hiroki Noda
fce262d1c2 [trivial] Fix dirEntries docs
Use `std.process.executeShell` instead of old system function.
2018-12-17 06:02:46 +09:00
Vladimir Panteleev
e86df01f02
std.file: Use simpler dirent reading closer to C API 2018-12-14 15:18:35 +00:00
Eduard Staniloiu
cb1dd9fef6 Fix Issue 19133 - core.exception.rangeerror@std/file.d(3812) 2018-12-14 16:39:30 +02:00
Walter Bright
f30f6b3ce1 inure against windows.d changes by casting to LPCWSTR 2018-12-04 22:56:29 -08:00
Joakim
a3e12db149 Android: much of /proc was made inaccessible since Oreo, but cpuinfo is still readable. 2018-12-04 17:10:00 +05:30
Sebastian Wilzbach
0a45323f6f
Revert "Add getTimesPosix" 2018-11-16 21:33:59 +10:00
Nicholas Lindsay Wilson
13fb09dbb7 Whitespace 2018-11-16 10:45:42 +08:00
Roman Chistokhodov
87c9e6a9e3 Add getTimesPosix 2018-11-16 10:36:10 +08:00
Roman Chistokhodov
d1c9bd2721 Add fillStatBuf 2018-11-16 10:36:10 +08:00
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
Walter Bright
33cceac7ac switch Digital Mars copyright to D Language Foundation 2018-09-05 13:49:46 -07:00
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