Contents

isRelative

Returns true if this path is not absolute (see isAbsolute).

Declaration

var isRelative: Bool { get }

Discussion

Examples:

  • Unix:

    • ~/bar

    • tmp/foo.txt

  • Windows:

    • bar\baz

    • C:Users\

    • \Users