exfile v0.3.0 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
Returns the URI of this file
Types
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.