function OpenDirectory(const Path: string): TScSFTPFileHandle;

 

Description

Call the OpenDirectory method to open an existing directory on the server for enumeration.

If NonBlocking is False,OpenDirectory returns the directory handle. Otherwise it returns nil, and to obtain the directory handle the OnOpenFile event should be processed. If the server returns an error, the OnError event is generated.

The obtained directory handle may be used in other operations, for example, in ReadDirectory.

When enumeration is complete, the handle must be closed using the CloseHandle method.

 

Parameters:

Path - the path name of the directory to be listed (without any trailing slash). If Path does not refer to a directory, the server returns an error.

 

See Also

CloseHandle

OnError

OnOpenFile

OpenFile

 

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