SMB2 using smbclient icon

SMB2 using smbclient

Interact with SMB shares using the smbclient CLI

Folder → List Directory

AI-generated

Summary

Lists the entries in the specified SMB directory using the smbclient command-line tool. For each input item, returns the directory path and parsed entry details, including names, sizes, attributes, and directory flags when available.

Inputs

  • Smbclient Path — Path to the smbclient executable; defaults to smbclient on PATH.
  • Directory — SMB directory to list; defaults to /. The node uses the configured SMB credentials and share.

Output shape

One JSON item per input item, with directory and an entries array.

Each parsed entry may include name, size, attributes, and isDirectory; date and time are included when present in the smbclient listing. Dot entries, numeric-only names, and the “blocks available” line are filtered out. Listing failures surface as node errors.

Links

Discussion