SFTP Open Dir.vi

'SFTP Open Dir.vi' connector pane

SFTP Open Dir.vi connector pane

Description

Open a directory for reading.

The process required to list the contents of a directory goes as follows:

  1. Call SFTP Open Dir.vi to open the directory for reading.
  2. Call SFTP Read Dir.vi repeatedly until it returns an empty filename. An empty filename indicates that all files have been read.
  3. Call SFTP Close Dir.vi to close the directory.

Note

This is a low-level VI whose usage is not typical. For a quick 1-step directory listing function, use SFTP EZ Directory Listing.vi.

Inputs

cu64 LabSSH Session

Required:Yes

SSH session refnum.

cstr Remote Path

Required:Yes

Remote filesystem path to requested directory. This can be a relative path or an absolute path.

Examples:
/home/user/data/
./data/

cerrcodeclst error in

Required:No
Default:No Error

Incoming error from previous VI call. Is passed through to error out.

Warning

LabVIEW will not execute Call Library Function Node if there is an error present on the wire. Ensure that there is no error prior to calling this VI – unexpected behavior will occur.

ci32 Timeout msec

Required:No
Default:5000

Amount of time in milliseconds to wait for a response from remote host before a timeout error occurs.

Outputs

iu64 LabSSH Session Out

Duplicate SSH session refnum.

ierrcodeclst error out

Error (if any) resulting from this VI call.