exfile v0.1.5 Exfile.File
Represents a file stored on a Backend.
Summary
Functions
Deletes a file
Checks if the file given actually exists in the backend or not
Opens a file
Returns the size, in bytes, of an Exfile.File
Types
t :: %Exfile.File{backend: map, backend_meta: map, id: binary, meta: map}
Functions
Specs
exists?(t) :: boolean
Checks if the file given actually exists in the backend or not.
Specs
open(t) ::
{:ok, %Exfile.LocalFile{io: term, meta: term, path: term}} |
{:error, :file.posix}
Opens a file.
Specs
size(t) :: {:ok, pos_integer} | {:error, :file.posix}
Returns the size, in bytes, of an Exfile.File.