Actions8
Stat
AI-generatedSummary
Retrieve metadata information about a file or folder located on a remote SMB share path.
Inputs
- Smbclient Path — Specify a custom path to the smbclient binary if it is not in the system PATH (default is 'smbclient').
- Remote Path (required) — Define the remote file or folder path on the SMB share to get metadata for.
Output shape
A JSON object containing the remote path and its metadata properties such as size, creation time, access time, write time, change time, attributes, and a flag indicating if it is a directory.
The metadata object fields may be undefined if the information is not available. The operation returns a single item per input with the metadata in the JSON output under the keys: remotePath, size, createTime, accessTime, writeTime, changeTime, attributes, and isDirectory.
Examples
Example 1: Get metadata of a file "/documents/report.pdf" on the SMB share
Set the Remote Path to "/documents/report.pdf" and optionally specify a custom smbclient path if needed. The output JSON will include file size and timestamps.