public static UnixPath getPath(boolean permitEmptyComponents, String path) {
    if (path.isEmpty()) {
      return EMPTY_PATH;
    } else if (isRootInternal(path)) {
      return ROOT_PATH;
    } else {
      return new UnixPath(permitEmptyComponents, path);
    }
  }
public static UnixPath getPath ( boolean permitEmptyComponents , String path ) { if ( path . isEmpty ( ) ) { return EMPTY_PATH ; } else if ( isRootInternal ( path ) ) { return ROOT_PATH ; } else { return new UnixPath ( permitEmptyComponents , path ) ; } }
Returns new path of {@code first}.