summaryrefslogtreecommitdiff
path: root/test cases/common/220 fs module
AgeCommit message (Collapse)Author
2025-07-24Add suffix function to the fs moduleJouke Witteveen
2025-07-24Work around os.path.isabs bug in fs moduleJouke Witteveen
2025-07-24Restructure fs module in terms of os.pathJouke Witteveen
2024-02-24Add support for BuildTargetTypes to various fs module functionsTristan Partin
The new support was added to fs.name, fs.parent, fs.replace_suffix, and fs.stem.
2023-10-27Handle path behaviour change in Python 3.12.Jussi Pakkanen
2023-08-18Revert "Revert "Add fs.relative_to()""Tristan Partin
This reverts commit 84c8905d527893bedc673e8a036b8b2ec89368b4. Fixed the cygwin failure...
2023-08-17Revert "Add fs.relative_to()"Eli Schwartz
This reverts commit f52bcaa27fc125ab9ae583af466ba99c164169f3. It did not pass CI, and was merged anyway because there were two CI errors in the same cygwin job. The other error was not the fault of this commit, and since cygwin errors were glossed over because they were "expected", the presence of a new error *added* by this commit was overlooked. Per the meson development policy, PRs which result in CI errors can/should be reverted at will, no questions asked.
2023-08-17Remove hacky setup for CustomTargetIndex tests in fs.relative_to()Tristan Partin
2023-08-17Add fs.relative_to()Tristan Partin
Returns a relative path from arg 2 to arg 1 similar to os.path.relpath().
2023-08-16fs.read(): Catch FileNotFoundErrorXavier Claessens
2023-04-11fix various spelling issuesJosh Soref
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2021-10-30Added warning if run_command is called without the check kwargVolker Weißmann
2021-05-08modules/fs: support FileOrString argumentsFlorian Fischer
With this change File objects created with the builtin files() function can be used with the fs submodule like normal strings. All methods that seem reasonable support FileOrSting arguments. For example fs.exists() still only takes str arguments because meson already ensures that File objects do exist when creating them with files(). Each user facing function of the fs module has an additional FeatureNew check when used with File objects. The test cases for fs are extended appropriately with tests for File objects.
2021-04-26Condense test directory names.Jussi Pakkanen