View Source SFTPClient.Operations.ListDir (SFTP Client v1.4.8)
A module that provides functions to retrieve a list of files in the given directory from an SFTP server.
Link to this section Summary
Functions
Lists the given directory on the server, returning the filenames as a list of strings. Raises when the operation fails.
Lists the given directory on the server, returning the filenames as a list of strings.
Link to this section Functions
@spec list_dir!(SFTPClient.Conn.t(), Path.t()) :: [String.t()] | no_return()
Lists the given directory on the server, returning the filenames as a list of strings. Raises when the operation fails.
@spec list_dir(SFTPClient.Conn.t(), Path.t()) :: {:ok, [String.t()]} | {:error, SFTPClient.error()}
Lists the given directory on the server, returning the filenames as a list of strings.