fs.is_relative

fs.is_relative

fs.is_relative

Function

Determine whether the current path is a relative path.

Syntax

Parameters

No parameters.

Return value

TypeDescription
BoolReturns true for relative paths, false otherwise.

Example

Notes

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