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
Link to this section Functions
Link to this function
file_info(conn, path)
View Source
file_info(conn, path)
View Source
file_info(SFTPClient.Conn.t(), Path.t()) ::
{:ok, File.Stat.t()} | {:error, SFTPClient.error()}
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.
Link to this function
file_info!(conn, path)
View Source
file_info!(conn, path)
View Source
file_info!(SFTPClient.Conn.t(), Path.t()) :: File.Stat.t() | no_return()
file_info!(SFTPClient.Conn.t(), Path.t()) :: File.Stat.t() | no_return()
Returns a File.Stat
struct from the remote file system object specified by
path. Raises when the operation fails.