| 123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Renci.SshNet.Sftp.Responses;
- namespace Renci.SshNet.Sftp.Requests
- {
- internal class SftpRmDirRequest : SftpRequest
- {
- public override SftpMessageTypes SftpMessageType
- {
- get { return SftpMessageTypes.RmDir; }
- }
- public string Path { get; private set; }
- public SftpRmDirRequest(uint requestId, string path, Action<SftpStatusResponse> statusAction)
- : base(requestId, statusAction)
- {
- this.Path = path;
- }
- protected override void LoadData()
- {
- base.LoadData();
- this.Path = this.ReadString();
- }
- protected override void SaveData()
- {
- base.SaveData();
- this.Write(this.Path);
- }
- }
- }
|