Xgit v0.1.3 Xgit.Core.FileContentSource View Source
Implements Xgit.Core.ContentSource
to read content from a file on disk.
Link to this section Summary
Functions
Creates an Xgit.Core.FileContentSource
for a file on disk.
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %Xgit.Core.FileContentSource{
path: Path.t(),
size: non_neg_integer() | :file_not_found
}
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
Creates an Xgit.Core.FileContentSource
for a file on disk.