List Directory
- Updated2025-07-30
- 2 minute(s) read
Acquires information about the contents of a directory on an SFTP server.

Inputs/Outputs
session in
—
session in specifies the session of the SFTP server connection.
remote path
—
remote path specifies the path of the directory that you want to inspect on the SFTP server.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
timeout (ms)
—
timeout (ms) specifies the time, in milliseconds, that the VI waits before timing out. A value of –1 indicates to wait indefinitely. The default value is 30000.
session out
—
session out returns a session that stores the configuration and state of an SFTP server connection. Use this session to refer to the SFTP server connection in subsequent VI calls.
files and directories
—
files and directories returns an array of File Attributes objects. Use the File Attributes node on each element of the array to identify filenames and other metadata. This VI always populates the Name and Long Listing properties of each File Attributes element. The Name property contains the filename. The Long Listing property contains a single line summary of the file information.
error out
—
error out contains error information. This output provides standard error out functionality. |
session in
—
remote path
—
error in (no error)
—
timeout (ms)
—
session out
—
files and directories
—
error out
—