Xgit v0.2.4 Xgit.Core.FileContentSource View Source

Implements Xgit.Core.ContentSource to read content from a file on disk.

Link to this section Summary

Types

t()

Describes a file on disk which will be used for reading content.

Functions

Creates an Xgit.Core.FileContentSource for a file on disk.

Link to this section Types

Link to this type

t()

View Source
t() :: %Xgit.Core.FileContentSource{
  path: Path.t(),
  size: non_neg_integer() | :file_not_found
}

Describes a file on disk which will be used for reading content.

Link to this section Functions

Link to this function

new(path)

View Source
new(path :: Path.t()) :: t()

Creates an Xgit.Core.FileContentSource for a file on disk.