View Source SFTPClient.Operations.ReadDir (SFTP Client v2.1.0)
A module that provides functions to read a list of directories on an SFTP server from a given file handle.
Summary
Functions
Reads the directory contents from the server, and returns the data as String.
Reads a file from the server, and returns the data as String. Raises when the operation fails.
Functions
@spec read_dir(SFTPClient.Handle.t()) :: {:ok, [any()]} | :eof | {:error, SFTPClient.error()}
Reads the directory contents from the server, and returns the data as String.
@spec read_dir!(SFTPClient.Handle.t()) :: [any()] | :eof | no_return()
Reads a file from the server, and returns the data as String. Raises when the operation fails.