View Source SFTPClient.Operations.FileInfo (SFTP Client v2.1.0)
A module that provides functions to retrieve information on files and directories from an SFTP server.
Summary
Functions
@spec 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.
@spec 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.