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

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

Summary

Functions

Creates a directory specified by path. The path must be a full path to a new directory. The directory can only be created in an existing directory.

Creates a directory specified by path. The path must be a full path to a new directory. The directory can only be created in an existing directory. Raises when the operation fails.

Functions

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

Creates a directory specified by path. The path must be a full path to a new directory. The directory can only be created in an existing directory.

@spec make_dir!(SFTPClient.Conn.t(), Path.t()) :: :ok | no_return()

Creates a directory specified by path. The path must be a full path to a new directory. The directory can only be created in an existing directory. Raises when the operation fails.