Renci.SshNet.Sftp.SftpSession.RequestRmDir C# (CSharp) Method

RequestRmDir() public method

Performs SSH_FXP_RMDIR request.
public RequestRmDir ( string path ) : void
path string The path.
return void
        public void RequestRmDir(string path)
        {
            SshException exception = null;

            using (var wait = new AutoResetEvent(false))
            {
                var request = new SftpRmDirRequest(ProtocolVersion, NextRequestId, path, Encoding,
                    response =>
                        {
                            exception = GetSftpException(response);
                            wait.Set();
                        });

                SendRequest(request);

                WaitOnHandle(wait, OperationTimeout);
            }

            if (exception != null)
            {
                throw exception;
            }
        }