HfHub.Commit.Operation.Add (HfHub v0.2.0)

Copy Markdown View Source

Operation to add or update a file.

Summary

Types

content_source()

@type content_source() :: binary() | Path.t()

t()

@type t() :: %HfHub.Commit.Operation.Add{
  content: content_source(),
  is_committed: boolean(),
  is_uploaded: boolean(),
  path_in_repo: String.t(),
  upload_info: HfHub.LFS.UploadInfo.t() | nil,
  upload_mode: upload_mode()
}

upload_mode()

@type upload_mode() :: :regular | :lfs | nil