Overview
This node interacts with SMB shares using the smbclient CLI, allowing users to perform various file operations on SMB shares such as retrieving file or folder metadata (stat), listing directories, uploading, downloading, deleting files, and managing directories. It is useful in scenarios where automation workflows need to access or manipulate files on SMB network shares, for example, backing up files, synchronizing data, or monitoring file metadata.
Use Case Examples
- Get metadata of a file or folder on an SMB share to check its properties before processing.
- List contents of a directory on an SMB share to automate file management tasks.
- Upload or download files to/from an SMB share as part of a data integration workflow.
Properties
| Name | Meaning |
|---|---|
| Smbclient Path | Custom path to smbclient binary, if not in PATH. |
| Remote Path | The path on the SMB share to operate on (file or folder). |
Output
JSON
metadata- Metadata information of the file or folder retrieved by the stat operation.
Dependencies
- Requires smbclient CLI installed and accessible, or a custom path to smbclient binary provided.
Troubleshooting
- Common issues include incorrect smbclient path or missing smbclient installation, resulting in execution errors.
- Errors may occur if the remote path does not exist or access permissions are insufficient.
- NodeOperationError with message 'Unsupported operation' indicates an invalid operation parameter.
Links
- Samba Client Documentation - Official documentation for smbclient CLI used by this node.