SMB2 using smbclient icon

SMB2 using smbclient

Interact with SMB shares using the smbclient CLI

Make Directory

AI-generated

Summary

Create a new directory on the SMB share at the specified remote path.

Inputs

  • Smbclient Path — Custom path to the smbclient binary if it is not present in the system PATH. Defaults to 'smbclient'.
  • Directory (required) — The path of the directory to create on the SMB share.

Output shape

a single JSON object per input item indicating the created directory path and a success flag

The output JSON contains 'directory' (the path created) and 'created' (boolean true) fields. Errors are thrown if creation fails.

Examples

Example 1: Create a new folder '/example/newfolder' on the SMB share.

Set 'Directory' to '/example/newfolder'. Optionally specify 'Smbclient Path' if smbclient is not in PATH.

Links

Discussion