assert(!WindowsPath("").isAbsolute); assert(!WindowsPath("/Hello/World").isAbsolute); assert(WindowsPath("C:/Hello/World").isAbsolute); assert(!WindowsPath("foo/bar.exe").isAbsolute); assert(!PosixPath("").isAbsolute); assert(PosixPath("/Hello/World").isAbsolute); assert(!PosixPath("C:/Hello/World").isAbsolute); assert(!PosixPath("foo/bar.exe").isAbsolute);
Whether the path is absolute.