View Source SFTPClient.Operations.ReadDir (SFTP Client v1.4.8)

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 a file from the server, and returns the data as String. Raises when the operation fails.

Reads the directory contents from the server, and returns the data as String.

Link to this section Functions

@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.

@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.