exfile v0.1.3 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
file :: %Exfile.File{backend: term, backend_meta: term, id: term, meta: term}
Functions
Specs
exists?(file) :: boolean
Checks if the file given actually exists in the backend or not.
Specs
open(file) ::
{:ok, %Exfile.LocalFile{io: term, meta: term, path: term}} |
{:error, :file.posix}
Opens a file.
Specs
size(file) ::
{:ok, pos_integer} |
{:error, :file.posix}
Returns the size, in bytes, of an Exfile.File.