FTP Get Path Info VI
- Updated2025-07-30
- 3 minute(s) read
Returns information about a path on the FTP server.
This VI uses the LIST command to interpret the information as a UNIX ls command output. If the VI fails, only the name in the path info cluster is correct.
(NI Linux Real-Time) The FTP server is disabled by default, and you cannot use it in safe mode. National Instruments recommends using WebDAV as the file transfer mechanism for improved security.

Inputs/Outputs
active (T)
—
active specifies whether the data connection is active or passive. The default is TRUE, which specifies an active connection.
ftp session
—
ftp session contains the refnum to an FTP session.
remote path
—
remote path is a path to a file on the FTP server. The remote path input supports Windows-like file paths such as c:\ni-rt\system\a.txt and UNIX-like file paths such as /ni-rt/system/a.txt. If you need to specify a drive letter on UNIX-like paths, the input supports paths such as /c:/ni-rt/system/a.txt.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
ftp session out
—
ftp session out returns the same value as ftp session.
reply code
—
reply code is the FTP status code in the reply string.
reply string
—
reply string is the reply that the FTP server returns.
error out
—
error out contains error information. This output provides standard error out functionality.
path info
—
path info is a cluster containing information about the following directory entries.
|
active (T)
—
ftp session
—
remote path
—
error in (no error)
—
ftp session out
—
reply code
—
reply string
—
error out
—
path info
—
type
—