isAbsolutePath(path)

Description:

Checks if the provided path is absolute (mainly for the purpose to know if a directory should be prepended to the path to make it absolute).
Note that it returns true for empty string.

Parameters:

Name Type Description

path

string

File path (supports local files, network drive paths, Windows paths with drive letter, unix root /)

Returns:

Returns true if the path is absolute or an empty string.

Type: boolean