procedure ReadDirectoryToList(const Handle: TScSFTPFileHandle; List: TCRObjectList);

 

Description

Call the ReadDirectoryToList method to retrieve a directory listing. For every received file or directory name the TScSFTPFileInfo object is created and added to the specified List. If the server returns an error, the OnError event is generated.

Unlike the ReadDirectory method, to get a complete directory listing, the ReadDirectoryToList method must be called only once; the OnDirectoryList event is not generated.

 

Parameters:

Handle - a handle returned previously in the response to OpenDirectory. If Handle is an ordinary file handle returned by OpenFile, the server returns an error.
List - the TScSFTPFileInfo objects, which describe every received file or directory name, will be assigned to this object. If List is nil, an exception will be raised.

 

See Also

OnError

OpenDirectory

ReadDirectory

 

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