path.is_absolute
path.is_absolute
Function
Determine whether the path is an absolute path.
Syntax
path(text).is_absolute()
Parameters
None.
Return value
| Type | Description |
|---|---|
| Bool | Returns true for absolute paths. |
Code Example
result = path('/var/log').is_absolute() // Output: true print result
Notes
- The judgment rules follow the current operating system.