type

TScSFTPServerRemoveDirectoryEvent = procedure(Sender: TObject; SFTPSessionInfo: TScSFTPSessionInfo; const Path: string; var Error: TScSFTPError) of object;

 

property OnRemoveDirectory: TScSFTPServerRemoveDirectoryEvent;

 

Description

The OnRemoveDirectory event occurs on request from an SFTP client to remove a directory.

You can call the DefaultRemoveDirectory method to execute this operation or write your own implementation.

 

Parameters:

Sender - the object whose event handler is called.
SFTPSessionInfo - contains the information about the current SFTP session.
Path - specifies the directory to be removed. To get an absolute directory path, use the GetFullPath method.
Error - a parameter to pass the information about an error that can arise when removing a directory.

 

See also

DefaultRemoveDirectory

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