aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-11-08 03:43:49 -0500
committerMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-11-17 00:17:02 -0500
commit052d918908b4e571a42cd3fc539933f9db139e0c (patch)
tree9ca08b87ffee43e27b19845c74996cf1abe5574a /docs
parentdc8e8f06441030fc1d7f16a8444964ea5a125321 (diff)
downloadmeson-052d918908b4e571a42cd3fc539933f9db139e0c.zip
meson-052d918908b4e571a42cd3fc539933f9db139e0c.tar.gz
meson-052d918908b4e571a42cd3fc539933f9db139e0c.tar.bz2
add fs.with_suffix
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/Fs-module.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/markdown/Fs-module.md b/docs/markdown/Fs-module.md
index e68bf68..3332b1e 100644
--- a/docs/markdown/Fs-module.md
+++ b/docs/markdown/Fs-module.md
@@ -8,6 +8,8 @@ available starting with version 0.53.0.
Non-absolute paths are looked up relative to the directory where the
current `meson.build` file is.
+If specified, `~` is expanded to the user home directory.
+
### exists
Takes a single string argument and returns true if an entity with that
@@ -29,3 +31,16 @@ name exists on the file system. This method follows symbolic links.
Takes a single string argument and returns true if the path pointed to
by the string is a symbolic link.
+
+## Filename modification
+
+### with_suffix
+
+The `with_suffix` method allows changing the filename suffix
+
+```meson
+original = '/opt/foo.ini'
+new = fs.with_suffix('.txt')
+```
+
+The files need not actually exist yet for this method. \ No newline at end of file