code: public static boolean isDirectoryPath(URI path) {
      return (path != null) && path.toString().endsWith(GoogleCloudStorage.PATH_DELIMITER);
    }
docs: Indicates whether the given path looks like a directory path.
  
  @param path Path to inspect.
  @return Whether the path looks like a directory path.