function OpenDirectory(const Path: string): TScSFTPFileHandle;



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.



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






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