os.Path.pathtype

Checks if a path is a relative path or an absolute path.

Syntax

os.Path.pathtype(
   path STRING)
  RETURNING result STRING
  1. path is the path to check.

Usage

The function returns "absolute" if the path is an absolute path, or "relative" if the path is a relative path.

If the path is NULL, the function returns NULL.