Atila Neves
c2b6dbb0bb
Make timeLastModified
unittest @safe
2021-05-10 16:29:17 +02:00
Atila Neves
88808733f8
Make setTimes
unittest @safe
2021-05-10 16:27:55 +02:00
Atila Neves
8573787e1c
Make gettimes
unittest @safe
2021-05-10 16:26:46 +02:00
Atila Neves
09e1f93043
Make append
unittest @safe
2021-05-10 16:24:49 +02:00
Atila Neves
6dd5f57225
Make write
test @safe
2021-05-10 16:23:16 +02:00
Iain Buclaw
44f589b7b4
Revert "std.file docs: Tweak dirEntries examples"
2021-04-24 16:46:12 +02:00
Nick Treleaven
e5a6ba3714
fix missing doc example warning
...
std/file.d(4950:6)[warn]: Public declaration 'dirEntries' has no documented example.
2021-03-23 17:03:23 +00:00
Nick Treleaven
c47aa37f0e
Review tweaks
2021-03-23 13:09:08 +00:00
Nick Treleaven
77cdd7a980
fix style check
2021-03-22 18:46:22 +00:00
Nick Treleaven
a7cb83ee5f
std.file docs: Tweak dirEntries examples
...
Use selective imports for `listdir` example, not fully qualified calls.
Don't use `args`, use current directory for working runnable example.
Move parallel dmd example into a documented unittest. Use `pattern`
argument instead of filter & endsWith for simplicity. Note the
`listdir` example already uses `map`.
Only run these 'tests' for version(StdDdoc).
2021-03-22 13:51:20 +00:00
berni44
6f2a0934a7
Adapt imports of std.format to new structure of std.format.
2021-03-19 13:22:00 +01:00
Iain Buclaw
d2ec9db951
std.file: Use core.sys.darwin.mach.dyld module
2021-02-02 14:03:18 +01:00
Iain Buclaw
0df7288a50
std.file: Use core.sys.platform.sys.sysctl module
2021-02-02 14:03:18 +01:00
Iain Buclaw
c6c8b12852
Implement missing OpenBSD ports in phobos
2021-02-01 18:46:54 +01:00
Luís Ferreira
5ce45f91d2
file: make rmdirRecurse @safe
...
`rmdirRecurse` should be @safe as the cast(string) is safe in this context and
dirEntries, even though @system, it uses a RefCounted iterator which inside
will always make the reference deleted as the reference will never be passed
outside the function scope.
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
2020-10-29 05:25:03 +01:00
Andrei Alexandrescu
c5e6213dde
Issue 21250 - dirEntries on non-existent directory causes assert error ( #7646 )
...
Issue 21250 - dirEntries on non-existent directory causes assert error
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2020-10-02 16:49:09 +02:00
Nathan Sashihara
b8e9e70e90
Fix Issue 20370 - On POSIX, std.file.copy only copies the file times at second precision
2020-09-16 09:31:41 +02:00
Nils Lankila
e36b5aaba0
fix issue 21148, possible failure of CI when testing nano precision of file time stamps ( #7589 )
...
fix issue 21148, possible failure of CI when testing nano precision of file time stamps
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-08-13 10:12:08 +02:00
Euan Torano
8e03a95457
Fix issue 21113: Use sysctl for thisExePath on BSD.
2020-08-05 10:20:11 +02:00
Nathan Sashihara
453faadf5b
Replace is(Unqual!T == Unqual!U) with is(immutable T == immutable U) for speed & memory usage
2020-08-03 15:07:32 +02:00
Nathan Sashihara
dfb9099055
Fix Issue 20785 - std.file.setTimes: on macOS use setattrlist to avoid truncating timestamp precision to microseconds
2020-05-18 15:07:27 -07:00
Geod24
04f3979317
Replace 'Issue XXX' with Bugzilla links
...
Make the links clickable, as was done in the DMD repository.
Also avoids any ambiguity w.r.t. where the issue is stored.
2020-04-13 16:28:09 +09:00
Jacob Carlborg
6425af57b1
Fix std.file unit test
...
The current working directory is not writeable on Apple's ARM platforms.
2020-03-03 12:51:07 +01:00
Jacob Carlborg
280f3fce87
Disable most of std.process
on iOS derived platforms
...
A process does not have permission to create new processes on
iOS derived platforms.
2020-03-03 12:51:07 +01:00
Jacob Carlborg
5bccc30ef7
Implement thisExePath
on iOS derived platforms
2020-03-03 12:51:07 +01:00
The Dlang Bot
1c91e85bb1
Merge pull request #7392 from mark-summerfield/patch-1
...
Added a chmod example in the description...
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2020-02-26 06:05:46 +01:00
Adam D. Ruppe
ae93f5317c
Use consistent quickindex wrapper around hand-written list-of-links tables
2020-02-21 21:04:05 -05:00
Mark
049acda282
Wrapped to 80 cols
...
The github editor doesn't show line lengths so I've guessed.
2020-02-06 08:03:14 +00:00
Mark
810f0dab52
Deleted spurious whitespace
2020-02-05 13:37:22 +00:00
Mark
817602e479
Added a chmod example in the description...
...
I added this because if you search the D docs for `chmod` no results appear. This should help with the search and also provide a useful example.
2020-02-05 11:19:08 +00:00
Alexandru Militaru
bb62aaca3d
Replaced version (unittest) with version (StdUnittest) to avoid unnecessary overhead when compiling with -unittest
2020-01-19 14:05:17 +02:00
The Dlang Bot
58cb6963fb
Merge pull request #7288 from berni44/issue11631
...
Clarify the behaviour of rename on posix systems.
merged-on-behalf-of: Vladimir Panteleev <CyberShadow@users.noreply.github.com>
2019-11-21 02:14:02 +01:00
Bernhard Seckinger
fb9c323599
Clarify the behaviour of rename on posix systems.
2019-11-20 16:11:51 +01:00
Bernhard Seckinger
557d932212
Change Posix to POSIX in comments.
2019-11-20 16:00:09 +01:00
Vladimir Panteleev
3892071c32
std.file: Fix unittest for no autodecode
2019-08-15 12:13:58 +00:00
Walter Bright
9e61c5740d
std.math: change tests for rounding
2019-07-15 22:07:50 -07:00
Mike
2b2a4a10bb
Replace usages of in
with const scope
2019-07-15 16:10:22 +09:00
shove70
8ba408b521
Fix issue 19834 - File exception for [std.file.copy] on windows shows the target file rather than the source file
2019-07-05 16:58:43 +08:00
jercaianu
6010a7ccde
Fix Issue 16487 - Add function to obtain the available disk space ( #5776 )
...
Fix Issue 16487 - Add function to obtain the available disk space
merged-on-behalf-of: unknown
2019-06-28 08:35:59 +02:00
Iain Buclaw
6b9336b962
std/file.d: Clean-up unused imports after merging #6805
2019-04-06 13:25:35 +02:00
The Dlang Bot
8808233223
Merge pull request #6912 from CyberShadow/pull-20190318-132350
...
[Trivial] std.file: Optimize deleteme a bit
merged-on-behalf-of: Nicholas Wilson <thewilsonator@users.noreply.github.com>
2019-03-18 15:19:23 +01:00
Vladimir Panteleev
2a2dce67f5
std.file: Optimize deleteme a bit
...
- Remove one unnecessary TLS variable
- Replace std.conv.to + concatenation with std.conv.text to lower the
upper bound of allocations
2019-03-18 13:26:21 +00:00
Bastiaan Veelo
1a33bd1e6f
Fix documentation link.
...
In absence of LREF_ALTTEXT, sacrifice grammatical correctness to get a working link. There is precedence on line 4784.
2019-02-13 09:31:53 +01:00
Bastiaan Veelo
4af6b11d7e
Fix typo in documentation.
2019-02-12 20:11:37 +01:00
Martin Nowak
6804bf18cd
Merge remote-tracking branch 'upstream/stable' into merge_stable
2018-12-24 17:26:02 +01:00
Rainer Schuetze
94e508905a
do not mix arrays and raw GC.realloc/free: base address of arrays are not necessarily the base of the allocation, realloc doesn't update array info
2018-12-23 14:04:02 +01:00
Nicholas Wilson
e7cfc5c1f2
Merge pull request #6805 from edi33416/issue_19133
...
Fix Issue 19133 - core.exception.rangeerror@std/file.d(3812)
2018-12-18 19:46:37 +08:00
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