procedure DefaultReadDirectory(SFTPSessionInfo: TScSFTPSessionInfo; Data: TObject; FileInfo: TScSFTPFileInfo; var Error: TScSFTPError); virtual;

 

Description

Call the DefaultReadDirectory method to search the next file in a directory specified by the Data object and retrieve the information about this file in the FileInfo object. If a file is not found, the erEof error is returned.

In order to obtain a complete directory listing, the user must call this method until the erEof error will be returned.

 

Parameters:

SFTPSessionInfo - contains the information about the current SFTP session.
Data - specifies the information about the reading directory as the TScSearchRec object. Usually this object is previously returned by the DefaultOpenDirectory method.
FileInfo - the object that will contain the information about the found file.
Error - returns the information about an error that can arise when reading a directory. The erEof error is returned if file is not found.

 

See also

OnReadDirectory

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