SMB2 using smbclient icon

SMB2 using smbclient

Interact with SMB shares using the smbclient CLI

Folder → Get Metadata

AI-generated

Summary

Retrieve detailed metadata for a specified folder path on an SMB2 share using the smbclient CLI.

Inputs

  • Smbclient Path — Optional custom path to the smbclient binary if it is not in the system PATH (defaults to 'smbclient').
  • Remote Path (required) — The path to the remote folder on the SMB2 share for which to retrieve metadata.

Output shape

A single JSON object containing the folder's metadata including size, creation time, access time, write time, change time, attributes, and whether it is a directory.

The output JSON has the property 'remotePath' indicating the queried path, plus fields such as size, createTime, accessTime, writeTime, changeTime, attributes (array of attribute codes), and isDirectory (boolean). The operation executes on each input item separately and outputs one corresponding metadata object per item.

Examples

Example 1: Retrieve metadata for a specific folder

Set the resource to 'Folder', operation to 'Get Metadata', specify the SMB share credentials, provide the 'Remote Path' of the folder to inspect, and optionally set a custom smbclient binary path.

Links

Discussion