Antonin Décimo
39ede12aa5
Fix misspells
...
Signed-off-by: Antonin Décimo <antonin.decimo@gmail.com>
4 years ago
Dylan Baker
f6672c7a19
use real pathlib module
...
We added the _pathlib module to work around defeciencies in python 3.5's
implementation, since we now rely on 3.6 lets drop this
4 years ago
Daniel Mensinger
1dfaccfd91
pathlib: Fix resolve() by overriding it in Python 3.5
4 years ago
Daniel Mensinger
6b1b995b32
typing: fully annotate fs module
4 years ago
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
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
Daniel Mensinger
09b53c534f
types: import typing as T ( fixes #6333 )
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
Michael Brockus
7d162487e3
Add raise at the start of MesonException
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
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
052d918908
add fs.with_suffix
5 years ago
Michael Hirsch, Ph.D
dc8e8f0644
fs: improve exception feedback
5 years ago
Michael Hirsch, Ph.D
4adfd921ae
fs: use expanduser
5 years ago
Michael Hirsch, Ph.D
9fc76b0323
fs: deduplicate functions
5 years ago
Michael Hirsch, Ph.D
3bbd065576
fs: use pathlib.Path, add type hint check
5 years ago
Jussi Pakkanen
46788d1b5b
Created the filesystem module.
5 years ago