SFTP Client v1.3.3 SFTPClient.Operations.FileInfo View Source

A module that provides functions to retrieve information on files and directories from an SFTP server.

Link to this section Summary

Functions

Returns a File.Stat struct from the remote file system object specified by path.

Returns a File.Stat struct from the remote file system object specified by path. Raises when the operation fails.

Link to this section Functions

Link to this function

file_info(conn, path) View Source
file_info(SFTPClient.Conn.t(), Path.t()) ::
  {:ok, File.Stat.t()} | {:error, SFTPClient.error()}

Returns a File.Stat struct from the remote file system object specified by path.

Returns a File.Stat struct from the remote file system object specified by path. Raises when the operation fails.