Samba (SMB2) icon

Samba (SMB2)

Transfer files via Samba (SMB2)

Rename

AI-generated

Overview

This node operation renames or moves a file or folder on a Samba (SMB2) server. It is useful for organizing files, correcting file names, or moving files to different directories on the SMB share. For example, you can rename '/public/documents/old-file.txt' to '/public/documents/new-file.txt'.

Use Case Examples

  1. Renaming a file to update its name after processing.
  2. Moving a file to a different folder by renaming its path.

Properties

Name Meaning
Old Path The current full path of the file or folder to rename or move.
New Path The new full path for the file or folder after renaming or moving.
Options Additional options for the rename operation.

Output

JSON

  • json
    • error - Error message if the rename operation fails.

Dependencies

  • An SMB2 server connection with appropriate credentials

Troubleshooting

  • Common issues include permission errors on the SMB server preventing renaming.
  • If the destination directory does not exist and 'Create Directories' option is not enabled, the rename will fail.
  • Error messages like 'Failed to rename file' indicate issues with SMB connection or file permissions. Verify credentials and paths.
  • If the node is set to continue on failure, errors will be included in the output JSON under 'error' property for each item.

Links

Discussion