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