SMB2 using smbclient icon

SMB2 using smbclient

Interact with SMB shares using the smbclient CLI

Folder → Rename or Move

AI-generated

Summary

Renames or moves an SMB file or folder from the configured remote path to a new path. Optionally deletes an existing destination file first; the node processes each input item and returns the outcome for each.

Inputs

  • Smbclient Path — Path to the smbclient executable; defaults to smbclient on PATH.
  • Remote Path (required) — Current SMB path of the file or folder to rename or move.
  • New Path (required) — Destination path or new name for the file or folder.
  • Overwrite If Exists — Defaults to false. When true, attempts to delete the destination before renaming. This only supports files; existing directories cannot be overwritten.

Output shape

One item per input item, each with JSON fields oldPath, newPath, renamed: true, and overwritten.

overwritten is true if a destination file was deleted first; it remains false if no destination file existed. SMB command errors fail the operation.

Links

Discussion