Windows Fileshare (SMB2) icon

Windows Fileshare (SMB2)

Access Windows network file shares via SMB2 protocol

Actions9

Directory → List

AI-generated

Summary

Lists the entries in a directory on an SMB2 network share. Leave Directory Path empty to list the share root, or provide a path relative to the share root; the node normalizes forward slashes to backslashes and removes leading backslashes.

Inputs

  • Directory Path — Directory path relative to the share root. Leave empty for the root directory.
  • Timeout (Ms) — SMB operation timeout in milliseconds; defaults to 30,000 ms when not set. The configured credential timeout is used as a fallback.
  • Windows Network API credentials (required) — Credentials provide the share UNC path and SMB domain, username, password, and fallback timeout.

Output shape

One n8n item per input item, each with a JSON object containing directoryPath, files, and count.

directoryPath is '/' when listing the root; otherwise it is the normalized path. files contains the result of the SMB directory read, and count is its length. Errors stop execution unless Continue On Fail is enabled, in which case that input item returns an error field.

Links

Discussion