sftp_ex v0.2.5 SFTP.AccessService

Functions for accessing files and directories

Summary

Functions

Closes an open file Returns :ok, or {:error, reason}

Returns {:ok, File.Stat}, or {:error, reason}

Opens a file given a channel PID and path. {:ok, handle}, or {:error, reason}

Functions

close(connection, handle, path \\ [])

Closes an open file Returns :ok, or {:error, reason}

file_info(connection, remote_path)

Returns {:ok, File.Stat}, or {:error, reason}

open(connection, path, mode)

Opens a file given a channel PID and path. {:ok, handle}, or {:error, reason}

open_dir(connection, remote_path)
open_file(connection, remote_path, mode)