Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-02-04 | Introduce `fs.read` to read a file as a string | Luke Drummond | 1 | -1/+64 | |
Following #7890, this patch introduces the ability to read the contents of a file to the fs module. This patch introduces the ability to read files at configure time, but has some restrictions: - binary files are not supported (I don't think this will prove a problem, and if people are wanting to do something with binary files, they should probably be shelling out to their own script). - Only files outside the build directory allowed. This limitation should prevent build loops. Given that reading an arbitrary file at configure time can affect the configuration in almost arbitrary ways, meson should force a reconfigure when the given file changes. This is non-configurable, but this can easily be changed with a future keyword argument. | |||||
2021-01-13 | Fix misspells | Antonin Décimo | 1 | -1/+1 | |
Signed-off-by: Antonin Décimo <antonin.decimo@gmail.com> | |||||
2020-11-20 | use real pathlib module | Dylan Baker | 1 | -1/+1 | |
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 | |||||
2020-10-04 | pathlib: Fix resolve() by overriding it in Python 3.5 | Daniel Mensinger | 1 | -1/+1 | |
2020-09-08 | typing: fully annotate fs module | Daniel Mensinger | 1 | -4/+4 | |
2020-02-06 | add FeatureNew | Michael Hirsch, Ph.D | 1 | -0/+5 | |
2020-02-06 | add fs.stem() | Michael Hirsch, Ph.D | 1 | -2/+11 | |
2020-02-06 | fs: add expanduser method | Michael Hirsch, Ph.D | 1 | -1/+8 | |
this should help users specify leading `~` in various Meson options and variables without refactoring lots of places inside Meson itself. | |||||
2020-02-06 | fs: add methods as_posix, is_absolute | Michael Hirsch, Ph.D | 1 | -7/+43 | |
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 | |||||
2020-01-08 | types: import typing as T (fixes #6333) | Daniel Mensinger | 1 | -13/+13 | |
2019-12-19 | fs: rename samefile => is_samepath | Michael Hirsch, Ph.D | 1 | -5/+5 | |
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() | |||||
2019-12-04 | Add raise at the start of MesonException | Michael Brockus | 1 | -7/+7 | |
2019-11-25 | fs: Add parent() and name() methods | Xavier Claessens | 1 | -0/+17 | |
2019-11-17 | fs: make replace_suffix not expand file to absolute path, just manipulate ↵ | Michael Hirsch, Ph.D | 1 | -1/+1 | |
the string | |||||
2019-11-17 | fs: replace_suffix | Michael Hirsch, Ph.D | 1 | -1/+1 | |
2019-11-17 | fs: get file size | Michael Hirsch, Ph.D | 1 | -2/+38 | |
fs: add samefile | |||||
2019-11-17 | fs: add hash compute method | Michael Hirsch, Ph.D | 1 | -0/+18 | |
2019-11-17 | add fs.with_suffix | Michael Hirsch, Ph.D | 1 | -1/+11 | |
2019-11-17 | fs: improve exception feedback | Michael Hirsch, Ph.D | 1 | -1/+1 | |
2019-11-17 | fs: use expanduser | Michael Hirsch, Ph.D | 1 | -1/+1 | |
2019-11-17 | fs: deduplicate functions | Michael Hirsch, Ph.D | 1 | -8/+5 | |
2019-11-17 | fs: use pathlib.Path, add type hint check | Michael Hirsch, Ph.D | 1 | -14/+17 | |
2019-11-08 | Created the filesystem module. | Jussi Pakkanen | 1 | -0/+59 | |