SFTPClient.Operations.FileInfo (SFTP Client v1.4.6) 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

Specs

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.

Specs

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.