public boolean startsWith(UnixPath other) {
    UnixPath me = removeTrailingSeparator();
    other = other.removeTrailingSeparator();
    if (other.path.length() > me.path.length()) {
      return false;
    } else if (me.isAbsolute() != other.isAbsolute()) {
      return false;
    } else if (!me.path.isEmpty() && other.path.isEmpty()) {
      return false;
    }
    return startsWith(split(), other.split());
  }
public boolean startsWith ( UnixPath other ) { UnixPath me = removeTrailingSeparator ( ) ; other = other . removeTrailingSeparator ( ) ; if ( other . path . length ( ) > me . path . length ( ) ) { return false ; } else if ( me . isAbsolute ( ) != other . isAbsolute ( ) ) { return false ; } else if ( ! me . path . isEmpty ( ) && other . path . isEmpty ( ) ) { return false ; } return startsWith ( split ( ) , other . split ( ) ) ; }
Returns {@code true} if {@code path} starts with {@code other}.

@see java.nio.file.Path#startsWith(java.nio.file.Path)