View Source FSS.Local (fss v0.1.1)

Specification for local files.

The FSS.Local.Entry represents a local file with its path.

Summary

Functions

Builds a FSS.Local.Entry struct from a path.

Functions

@spec from_path(String.t()) :: FSS.Local.Entry.t()

Builds a FSS.Local.Entry struct from a path.

Examples

iex> FSS.Local.from_path("/home/joe/file.txt")
%FSS.Local.Entry{path: "/home/joe/file.txt"}

iex> FSS.Local.from_path("C:/joe/file.txt")
%FSS.Local.Entry{path: "C:/joe/file.txt"}