fs.is_absolute

fs.is_absolute

fs.is_absolute

Function

Determine whether the current path is an absolute path.

Syntax

Parameters

No parameters.

Return value

TypeDescription
BoolReturns true for an absolute path, false otherwise.

Example

Notes

  • The judgment is based on the path text itself and does not require the existence of the path.