public interface

BulkFile

com.atlassian.bitbucket.scm.bulk.BulkFile

Class Overview

Metadata about a file of a bulk content command.

Summary

Public Methods
@Nonnull BulkChangeType getChangeType()
@Nonnull String getContentId()
For added or modified files, returns a content ID for the new content.
@Nonnull String getPath()
long getSize()

Public Methods

@Nonnull public BulkChangeType getChangeType ()

Returns
  • how the file has changed

@Nonnull public String getContentId ()

For added or modified files, returns a content ID for the new content. For deleted files, the ID is for the content before deletion.

Returns
  • an ID that identifies the contents of the file

@Nonnull public String getPath ()

Returns
  • the file path

public long getSize ()

Returns
  • the file size in bytes, or 0 for deleted files