Dylan Baker
29ef4478df
compilers/d: Add b_ndebug support
...
D lang compilers have an option -release (or similar) which turns off
asserts, contracts, and other runtime type checking. This patch wires
that up to the b_ndebug flag.
Fixes #7082
5 years ago
Michael Hirsch, Ph.D
2bbd57092f
add FeatureNew
5 years ago
Michael Hirsch, Ph.D
5bbeab8ed4
add fs.stem()
5 years ago
Michael Hirsch, Ph.D
92534855cc
doc: filesystem module
5 years ago
Michael Hirsch, Ph.D
dcb7043403
fs: add expanduser method
...
this should help users specify leading `~` in various Meson options and variables
without refactoring lots of places inside Meson itself.
5 years ago
Michael Hirsch, Ph.D
4556343d95
fs: add methods as_posix, is_absolute
...
fs: make exception specify method name
fs: actually raise exceptions
fs: resolve path e.g. /opt/foo/.. => /opt/foo
fs: correct behavior of is_symlink
5 years ago
Michael Hirsch, Ph.D
fb121f6254
fs: rename samefile => is_samepath
...
is_samepath better reflects the nature of this function--that files
and directories can be compared.
Also, instead of raising exceptions, simply return False when one
or both .is_samepath(path1, path1) don't exist. This is more
intuitive behavior and avoids having an extra if fs.exist() to go
with every fs.is_samepath()
5 years ago
Xavier Claessens
a6f7a1d8c4
fs: Add parent() and name() methods
5 years ago
Michael Hirsch, Ph.D
0cb48cdc79
fs: make replace_suffix not expand file to absolute path, just manipulate the string
5 years ago
Michael Hirsch, Ph.D
2ae96f8595
fs: replace_suffix
5 years ago
Michael Hirsch, Ph.D
4997d93b49
fs: add docs for fs.size()
5 years ago
Michael Hirsch, Ph.D
5db3f8ac3d
fs: correct docs
5 years ago
Michael Hirsch, Ph.D
a320274179
fs: get file size
...
fs: add samefile
5 years ago
Michael Hirsch, Ph.D
67651271f6
fs: add hash compute method
5 years ago
Michael Hirsch, Ph.D
1a0b4ddf34
fs: further document and test behavior
5 years ago
Michael Hirsch, Ph.D
052d918908
add fs.with_suffix
5 years ago
Jussi Pakkanen
46788d1b5b
Created the filesystem module.
5 years ago