SFTP Client v1.3.3 SFTPClient.Operations.ReadDir View Source
A module that provides functions to read a list of directories on an SFTP server from a given file handle.
Link to this section 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.
Link to this section Functions
Link to this function
read_dir(handle)
View Source
read_dir(handle)
View Source
read_dir(SFTPClient.Handle.t()) ::
{:ok, [any()]} | {:error, SFTPClient.error()}
read_dir(SFTPClient.Handle.t()) :: {:ok, [any()]} | {:error, SFTPClient.error()}
Reads the directory contents from the server, and returns the data as String.
Link to this function
read_dir!(handle)
View Source
read_dir!(handle)
View Source
read_dir!(SFTPClient.Handle.t()) :: [any()] | no_return()
read_dir!(SFTPClient.Handle.t()) :: [any()] | no_return()
Reads a file from the server, and returns the data as String. Raises when the operation fails.