path.is_relative
path.is_relative
Function
Determine whether the path is a relative path.
Syntax
path(text).is_relative()
Parameters
None.
Return value
| Type | Description |
|---|---|
| Bool | Returns true for relative paths. |
Code Example
result = path('docs/index.md').is_relative() // Output: true print result
Notes
- The judgment rules follow the current operating system.