SMB2 using smbclient icon

SMB2 using smbclient

Interact with SMB shares using the smbclient CLI

File → Rename or Move

AI-generated

Summary

Rename or move a file on an SMB share to a new path or name.

Inputs

  • Smbclient Path — Optional custom path to the smbclient binary if it's not in the system PATH.
  • Remote Path (required) — Current path of the file to rename or move on the SMB share.
  • New Path (required) — New path or name for the renamed or moved file on the SMB share.
  • Overwrite If Exists — If true and a file exists at the new path, delete it before renaming. Only applies to files, not directories.

Output shape

a single JSON object per item with keys: oldPath (string), newPath (string), renamed (boolean), and overwritten (boolean, true if an existing file was deleted before rename).

Throws error if renaming fails or if overwrite deletion fails for reasons other than destination not found. Overwrite option does not support overwriting directories.

Links

Discussion