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

A module that provides functions to create symlinks on an SFTP server.

Summary

Functions

Creates a symbolic link pointing to target_path with the name symlink_path.

Creates a symbolic link pointing to target_path with the name symlink_path. Raises when the operation fails.

Functions

Link to this function

make_link(conn, symlink_path, target_path)

View Source
@spec make_link(SFTPClient.Conn.t(), Path.t(), Path.t()) ::
  :ok | {:error, SFTPClient.error()}

Creates a symbolic link pointing to target_path with the name symlink_path.

Link to this function

make_link!(conn, symlink_path, target_path)

View Source
@spec make_link!(SFTPClient.Conn.t(), Path.t(), Path.t()) :: :ok | no_return()

Creates a symbolic link pointing to target_path with the name symlink_path. Raises when the operation fails.