EditorConfig.FileSystem behaviour (EditorConfig v0.1.0)

Copy Markdown View Source

Filesystem behaviour used by the resolver.

Summary

Callbacks

exists?(t)

@callback exists?(Path.t()) :: boolean()

read(t)

@callback read(Path.t()) :: {:ok, binary()} | {:error, term()}

Functions

exists?(path)

@spec exists?(Path.t()) :: boolean()

read(path)

@spec read(Path.t()) :: {:ok, binary()} | {:error, term()}