aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-12-20 06:10:25 -0500
committerMichael Hirsch, Ph.D <10931741+scivision@users.noreply.github.com>2020-02-06 12:54:38 -0500
commit5bbeab8ed461bc2464d9b590b2faf758aa854362 (patch)
treea04df538dbca87a223dc0d0aee95aaa20bfa0163 /docs/markdown
parent92534855cc11e0939f769e19d995be0605be2fb2 (diff)
downloadmeson-5bbeab8ed461bc2464d9b590b2faf758aa854362.zip
meson-5bbeab8ed461bc2464d9b590b2faf758aa854362.tar.gz
meson-5bbeab8ed461bc2464d9b590b2faf758aa854362.tar.bz2
add fs.stem()
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/Fs-module.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/markdown/Fs-module.md b/docs/markdown/Fs-module.md
index 64883c0..274788c 100644
--- a/docs/markdown/Fs-module.md
+++ b/docs/markdown/Fs-module.md
@@ -165,6 +165,24 @@ new = fs.replace_suffix(original, '') # /opt/foo.dll
Returns the parent directory (i.e. dirname).
+```meson
+new = fs.parent('foo/bar') # foo
+new = fs.parent('foo/bar/baz.dll') # foo/bar
+```
+
### name
Returns the last component of the path (i.e. basename).
+
+```meson
+fs.name('foo/bar/baz.dll.a') # baz.dll.a
+```
+
+### stem
+
+Returns the last component of the path, dropping the last part of the suffix
+
+```meson
+fs.stem('foo/bar/baz.dll') # baz
+fs.stem('foo/bar/baz.dll.a') # baz.dll
+```