Granados.Poderosa.SFTP.SFTPClient.RemoveDirectory C# (CSharp) Method

RemoveDirectory() public method

Remove directory.
Operation failed. Timeout has occured. Invalid status An exception which was thrown while processing the response.
public RemoveDirectory ( string path ) : void
path string Directory path to remove.
return void
        public void RemoveDirectory(string path)
        {
            CheckStatus();

            uint requestId = ++_requestId;

            byte[] pathData = _encoding.GetBytes(path);

            TransmitPacketAndWaitForStatusOK(
                requestId,
                new SFTPPacket(SFTPPacketType.SSH_FXP_RMDIR)
                    .WriteUInt32(requestId)
                    .WriteAsString(pathData)
            );
        }