Skip to content

SSH.SFTPDirectory.OpenSubdirectory

Andrew Lambert edited this page Apr 22, 2024 · 8 revisions

SSH.SFTPDirectory.OpenSubdirectory

Method Signatures

 Function OpenSubdirectory(Optional DirectoryName As String, TruePath As Boolean = False) As SSH.SFTPDirectory
 Function OpenSubdirectory(Index As Integer) As SSH.SFTPDirectory

Parameters

OpenSubdirectory(String, Boolean)

Name Type Comment
DirectoryName String Optional. The name of the subdirectory to be listed. If not specified then the CurrentName property is used.
TruePath Boolean Optional. If True and the DirectoryName refers to a symlink, then target directory is opened directly using its true path rather than the link's path.

OpenSubdirectory(Integer)

Name Type Comment
Index Integer The index, in the current directory, of the subdirectory to be listed.

Return value

A new SFTPDirectory representing the subdirectory, or Nil on error. Check SFTPDirectory.LastError for details if this method returns Nil.

Remarks

Open a subdirectory for listing.

Clone this wiki locally