SMB2 using smbclient icon

SMB2 using smbclient

Interact with SMB shares using the smbclient CLI

File → Stat

AI-generated

Summary

Retrieve metadata of a specified file on an SMB 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) — Path to the remote file on the SMB share for which metadata is to be retrieved.

Output shape

a single JSON object per input item containing the file's metadata fields such as size, createTime, accessTime, writeTime, changeTime, attributes, and isDirectory.

Returns metadata for one file specified by 'Remote Path' in each input item. Throws an error if the file does not exist or the SMB operation fails.

Links

Discussion