@@ -295,6 +295,7 @@ inputsecret({prompt} [, {text}]) String like input() but hiding the text
295295insert({object} , {item} [, {idx} ]) List insert {item} in {object} [before {idx} ]
296296interrupt() none interrupt script execution
297297invert({expr} ) Number bitwise invert
298+ isabsolutepath({path} ) Number | TRUE | if {path} is an absolute path
298299isdirectory({directory} ) Number | TRUE | if {directory} is a directory
299300isinf({expr} ) Number determine if {expr} is infinity value
300301 (positive or negative)
@@ -4672,6 +4673,24 @@ invert({expr}) *invert()*
46724673< Can also be used as a | method | : >
46734674 :let bits = bits->invert()
46744675
4676+ isabsolutepath({directory} ) *isabsolutepath()*
4677+ The result is a Number, which is | TRUE | when {path} is an
4678+ absolute path.
4679+ < On Unix, a path is considered absolute when it starts with '/'.
4680+ On MS-Windows, it is considered absolute when it starts with an
4681+ optional drive prefix and is followed by a '\' or '/'. UNC paths
4682+ are always absolute.
4683+ Example: >
4684+ echo isabsolutepath('/usr/share/') " 1
4685+ echo isabsolutepath('./foobar') " 0
4686+ echo isabsolutepath('C:\Windows') " 1
4687+ echo isabsolutepath('foobar') " 0
4688+ echo isabsolutepath('\\remote\file') " 1
4689+
4690+ Can also be used as a |method|: >
4691+ GetName()->isabsolutepath()
4692+
4693+
46754694 isdirectory({directory} ) *isdirectory()*
46764695 The result is a Number, which is | TRUE | when a directory
46774696 with the name {directory} exists. If {directory} doesn't
0 commit comments