code: static boolean objectHasDirectoryPath(String objectName) {
      return !Strings.isNullOrEmpty(objectName)
          && objectName.endsWith(GoogleCloudStorage.PATH_DELIMITER);
    }
docs: Indicates whether the given object name looks like a directory path.
  
  @param objectName Name of the object to inspect.
  @return Whether the given object name looks like a directory path.