View Source SFTPClient.Operations.FileInfo (SFTP Client v2.0.1)

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

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.

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.