# < Summary

Information

Class: | Renci.SshNet.Sftp.Requests.SftpRmDirRequest
Assembly: | Renci.SshNet
File(s): | \home\appveyor\projects\ssh-net\src\Renci.SshNet\Sftp\Requests\SftpRmDirRequest.cs

Line coverage
82%

Covered lines: | 19
Uncovered lines: | 4
Coverable lines: | 23
Total lines: | 60
Line coverage: | 82.6%

Branch coverage
N/A

Covered branches: | 0
Total branches: | 0
Branch coverage: | N/A

Method coverage

Feature is only available for sponsors

Upgrade to PRO version

# Metrics

Method | Branch coverage | Cyclomatic complexity | Line coverage
--- | --- | --- | ---
get_SftpMessageType() | 100% | 1 | 100%
get_Path() | 100% | 1 | 100%
set_Path(...) | 100% | 1 | 100%
get_Encoding() | 100% | 1 | 100%
get_BufferCapacity() | 100% | 1 | 100%
.ctor(...) | 100% | 1 | 100%
LoadData() | 100% | 1 | 0%
SaveData() | 100% | 1 | 100%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\Sftp\Requests\SftpRmDirRequest.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `using System;`
|  | `2` |  | `using System.Text;`
|  | `3` |  | `using Renci.SshNet.Sftp.Responses;`
|  | `4` |  | ``
|  | `5` |  | `namespace Renci.SshNet.Sftp.Requests`
|  | `6` |  | `{`
|  | `7` |  | `internal sealed class SftpRmDirRequest : SftpRequest`
|  | `8` |  | `{`
|  | `9` |  | `private byte[] _path;`
|  | `10` |  | ``
|  | `11` |  | `public override SftpMessageTypes SftpMessageType`
|  | `12` |  | `{`
| 132 | `13` |  | `get { return SftpMessageTypes.RmDir; }`
|  | `14` |  | `}`
|  | `15` |  | ``
|  | `16` |  | `public string Path`
|  | `17` |  | `{`
| 9 | `18` |  | `get { return Encoding.GetString(_path, 0, _path.Length); }`
| 141 | `19` |  | `private set { _path = Encoding.GetBytes(value); }`
|  | `20` |  | `}`
|  | `21` |  | ``
| 100 | `22` |  | `public Encoding Encoding { get; private set; }`
|  | `23` |  | ``
|  | `24` |  | `/// <summary>`
|  | `25` |  | `/// Gets the size of the message in bytes.`
|  | `26` |  | `/// </summary>`
|  | `27` |  | `/// <value>`
|  | `28` |  | `/// The size of the messages in bytes.`
|  | `29` |  | `/// </value>`
|  | `30` |  | `protected override int BufferCapacity`
|  | `31` |  | `{`
|  | `32` |  | `get`
| 41 | `33` |  | `{`
| 41 | `34` |  | `var capacity = base.BufferCapacity;`
| 41 | `35` |  | `capacity += 4; // Path length`
| 41 | `36` |  | `capacity += _path.Length; // Path`
| 41 | `37` |  | `return capacity;`
| 41 | `38` |  | `}`
|  | `39` |  | `}`
|  | `40` |  | ``
|  | `41` |  | `public SftpRmDirRequest(uint protocolVersion, uint requestId, string path, Encoding encoding, Action<SftpStatusR`
| 47 | `42` |  | `: base(protocolVersion, requestId, statusAction)`
| 47 | `43` |  | `{`
| 47 | `44` |  | `Encoding = encoding;`
| 47 | `45` |  | `Path = path;`
| 47 | `46` |  | `}`
|  | `47` |  | ``
|  | `48` |  | `protected override void LoadData()`
| 0 | `49` |  | `{`
| 0 | `50` |  | `base.LoadData();`
| 0 | `51` |  | `_path = ReadBinary();`
| 0 | `52` |  | `}`
|  | `53` |  | ``
|  | `54` |  | `protected override void SaveData()`
| 41 | `55` |  | `{`
| 41 | `56` |  | `base.SaveData();`
| 41 | `57` |  | `WriteBinaryString(_path);`
| 41 | `58` |  | `}`
|  | `59` |  | `}`
|  | `60` |  | `}`

# Methods/Properties

get_SftpMessageType()
get_Path()
set_Path(System.String)
get_Encoding()
get_BufferCapacity()
.ctor(System.UInt32,System.UInt32,System.String,System.Text.Encoding,System.Action`1<Renci.SshNet.Sftp.Responses.SftpStatusResponse>)
LoadData()
SaveData()