procedure DefaultOpenDirectory(SFTPSessionInfo: TScSFTPSessionInfo; const Path: string; out Data: TObject; var Error: TScSFTPError); virtual;
Description
Call the DefaultOpenDirectory method to open an existing directory for reading.
The obtained Data object may be used in other methods, for example, in DefaultReadDirectory, DefaultCloseFile.
Parameters:
• | SFTPSessionInfo - contains the information about the current SFTP session. |
• | Path - is the path name of the directory to be listed (without any trailing slash). If Path does not refer to a directory, the method returns an error. |
• | Data - returns the information about an opened directory as the TScSearchRec object. |
• | Error - returns the information about an error that can arise when opening a directory. |
See also