class GcsPath implements Path, Serializable {

  @Override
  public GcsPath getFileName() {
    int nameCount = getNameCount();
    if (nameCount < 2) {
      throw new UnsupportedOperationException(
          "Can't get filename from root path in the bucket: " + this);
    }
    return getName(nameCount - 1);
  }

  public  GcsPath(@Nullable FileSystem fs, @Nullable String bucket, @Nullable String object);

}