procedure DefaultOpenDirectory(SFTPSessionInfo: TScSFTPSessionInfo; const Path: string; out Data: TObject; var Error: TScSFTPError); virtual;



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.



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


SecureBridge Components, Copyright © 2007-2021 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support