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

RequestMkDir() public method

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

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

                SendRequest(request);

                WaitOnHandle(wait, OperationTimeout);
            }

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