SMB2 using smbclient icon

SMB2 using smbclient

Interact with SMB shares using the smbclient CLI

List Directory

AI-generated

Summary

List contents of a specified directory on an SMB share using the smbclient CLI.

Inputs

  • Smbclient Path — Custom path to the smbclient binary if it is not in the system PATH; defaults to 'smbclient'.
  • Directory — The directory path on the SMB share to list; defaults to '/'.

Output shape

A single JSON object containing the requested directory path and an array of entries representing files and folders within that directory.

Entries exclude '.' and '..' and avoid special entries like 'blocks available' or purely numeric names. Each entry includes file/folder name, size, date, time, attributes, and a boolean indicating if it is a directory.

Links

Discussion