diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2020-02-05 14:45:43 -0500 |
---|---|---|
committer | Michael Hirsch, Ph.D <10931741+scivision@users.noreply.github.com> | 2020-02-06 12:54:38 -0500 |
commit | 2bbd57092fe5ad3fb9006aa762688fcbea6dfbaa (patch) | |
tree | 839164b814fa8630022fca12026df77991c6e895 /docs/markdown | |
parent | 5bbeab8ed461bc2464d9b590b2faf758aa854362 (diff) | |
download | meson-2bbd57092fe5ad3fb9006aa762688fcbea6dfbaa.zip meson-2bbd57092fe5ad3fb9006aa762688fcbea6dfbaa.tar.gz meson-2bbd57092fe5ad3fb9006aa762688fcbea6dfbaa.tar.bz2 |
add FeatureNew
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 274788c..e5941a9 100644 --- a/docs/markdown/Fs-module.md +++ b/docs/markdown/Fs-module.md @@ -42,6 +42,8 @@ by the string is a symbolic link. ### is_absolute +*since 0.54.0* + Return a boolean indicating if the path string specified is absolute, WITHOUT expanding `~`. Examples: @@ -104,18 +106,22 @@ The files need not actually exist yet for these path string manipulation methods ### expanduser +*since 0.54.0* + A path string with a leading `~` is expanded to the user home directory Examples: ```meson -fs.expanduser('~') # home directory +fs.expanduser('~') # user home directory fs.expanduser('~/foo') # <homedir>/foo ``` ### as_posix +*since 0.54.0* + `fs.as_posix(path)` assumes a Windows path, even if on a Unix-like system. Thus, all `'\'` or `'\\'` are turned to '/', even if you meant to escape a character. @@ -180,6 +186,8 @@ fs.name('foo/bar/baz.dll.a') # baz.dll.a ### stem +*since 0.54.0* + Returns the last component of the path, dropping the last part of the suffix ```meson |