public default boolean startsWith (String other)

Tests if this path starts with a Path, constructed by converting the given path string, in exactly the manner specified by the startsWith(Path) method. On UNIX for example, the path " foo/bar" starts with " foo" and " foo/bar". It does not start with " f" or " fo".

Parameters:
other     the given path string

Returns:  true if this path starts with the given path; otherwise false

Exceptions:
InvalidPathException     If the path string cannot be converted to a Path.

@implSpec The default implementation is equivalent for this path to:


     startsWith(getFileSystem().getPath(other));