File tree Expand file tree Collapse file tree 3 files changed +35
-38
lines changed
Renci.SshNet.Tests/Classes/Sftp Expand file tree Collapse file tree 3 files changed +35
-38
lines changed Original file line number Diff line number Diff line change @@ -132,4 +132,39 @@ public StatVfsResponse Build()
132
132
} ;
133
133
}
134
134
}
135
+
136
+ internal class StatVfsResponse : SftpExtendedReplyResponse
137
+ {
138
+ public SftpFileSytemInformation Information { get ; set ; }
139
+
140
+ public StatVfsResponse ( uint protocolVersion )
141
+ : base ( protocolVersion )
142
+ {
143
+ }
144
+
145
+ protected override void LoadData ( )
146
+ {
147
+ base . LoadData ( ) ;
148
+
149
+ Information = new SftpFileSytemInformation ( ReadUInt64 ( ) , // FileSystemBlockSize
150
+ ReadUInt64 ( ) , // BlockSize
151
+ ReadUInt64 ( ) , // TotalBlocks
152
+ ReadUInt64 ( ) , // FreeBlocks
153
+ ReadUInt64 ( ) , // AvailableBlocks
154
+ ReadUInt64 ( ) , // TotalNodes
155
+ ReadUInt64 ( ) , // FreeNodes
156
+ ReadUInt64 ( ) , // AvailableNodes
157
+ ReadUInt64 ( ) , // Sid
158
+ ReadUInt64 ( ) , // Flags
159
+ ReadUInt64 ( ) // MaxNameLenght
160
+ ) ;
161
+ }
162
+
163
+ protected override void SaveData ( )
164
+ {
165
+ base . SaveData ( ) ;
166
+
167
+ Information . SaveData ( DataStream ) ;
168
+ }
169
+ }
135
170
}
Original file line number Diff line number Diff line change 417
417
<Compile Include =" Sftp\Responses\SftpResponse.cs" />
418
418
<Compile Include =" Sftp\Responses\SftpStatusResponse.cs" />
419
419
<Compile Include =" Sftp\Responses\SftpVersionResponse.cs" />
420
- <Compile Include =" Sftp\Responses\StatVfsResponse.cs" />
421
420
<Compile Include =" Sftp\SftpCloseAsyncResult.cs" />
422
421
<Compile Include =" Sftp\SftpDownloadAsyncResult.cs" />
423
422
<Compile Include =" Sftp\SftpFile.cs" />
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments