diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2019-11-24 19:39:13 -0500 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2019-11-25 14:55:19 -0500 |
commit | a6f7a1d8c43b26a2607022e41ee3f1b8fe98e8d6 (patch) | |
tree | 40fa831a0903a54571cd266105eca3f1cd97ca8c /docs/markdown | |
parent | 696358957617dff59f40d5ff7befa9924982578c (diff) | |
download | meson-a6f7a1d8c43b26a2607022e41ee3f1b8fe98e8d6.zip meson-a6f7a1d8c43b26a2607022e41ee3f1b8fe98e8d6.tar.gz meson-a6f7a1d8c43b26a2607022e41ee3f1b8fe98e8d6.tar.bz2 |
fs: Add parent() and name() methods
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Fs-module.md | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/markdown/Fs-module.md b/docs/markdown/Fs-module.md index 45cb589..3569b50 100644 --- a/docs/markdown/Fs-module.md +++ b/docs/markdown/Fs-module.md @@ -68,6 +68,8 @@ fs.samefile(x, z) # true ## Filename modification +The files need not actually exist yet for this method, as it's just string manipulation. + ### replace_suffix The `replace_suffix` method is a *string manipulation* convenient for filename modifications. @@ -101,4 +103,10 @@ original = '/opt/foo.dll.a' new = fs.replace_suffix(original, '') # /opt/foo.dll ``` -The files need not actually exist yet for this method, as it's just string manipulation.
\ No newline at end of file +### parent + +Returns the parent directory (i.e. dirname). + +### name + +Returns the last component of the path (i.e. basename). |