SMB2 using smbclient icon

SMB2 using smbclient

Interact with SMB shares using the smbclient CLI

Folder → Rename / Move File

AI-generated

Summary

Renames or moves a file or folder on the configured SMB share from Remote Path to New Path. For each input item, it can optionally delete an existing destination file before renaming; the source does not support overwriting a destination directory.

Inputs

  • Smbclient Path — Path to the smbclient executable; defaults to smbclient.
  • Remote Path (required) — Current path of the file or folder on the SMB share.
  • New Path (required) — Destination path or new name on the SMB share.
  • Overwrite If Exists — Defaults to false. When true, attempts to delete the destination file before renaming. Existing directories cannot be overwritten.
  • SMB credentials (required) — Credentials for the SMB server and share, configured on the node.

Output shape

One JSON item per input item, containing oldPath, newPath, renamed: true, and overwritten (true if the destination file was deleted first).

The operation invokes smbclient's rename command. With overwrite enabled, a missing destination is allowed; other delete failures or rename failures raise an operation error.

Links

Discussion