Remote file system operations on registered hosts.
Summary
Functions
Delete a file or directory on the host.
Download a file as binary.
List directory entries at remote_path.
Create a directory (and all parents) on the host.
Stat a path (size, mode, is_dir, symlink, etc.).
Upload content (binary) to remote_path on the host.
Types
@type result() :: {:ok, map()} | {:error, Miosa.Error.t()}
Functions
@spec delete(Miosa.Client.t(), String.t(), String.t()) :: result()
Delete a file or directory on the host.
@spec download(Miosa.Client.t(), String.t(), String.t()) :: {:ok, binary()} | {:error, Miosa.Error.t()}
Download a file as binary.
@spec list(Miosa.Client.t(), String.t(), String.t()) :: result()
List directory entries at remote_path.
@spec mkdir(Miosa.Client.t(), String.t(), String.t()) :: result()
Create a directory (and all parents) on the host.
@spec stat(Miosa.Client.t(), String.t(), String.t()) :: result()
Stat a path (size, mode, is_dir, symlink, etc.).
Upload content (binary) to remote_path on the host.