Skip to content

Commit 830e504

Browse files
authored
Rename SftpFileSytemInformation to SftpFileSystemInformation (#1425)
1 parent ac395dd commit 830e504

File tree

8 files changed

+35
-35
lines changed

8 files changed

+35
-35
lines changed

src/Renci.SshNet/ISftpClient.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -665,26 +665,26 @@ public interface ISftpClient : IBaseClient
665665
/// </summary>
666666
/// <param name="path">The path.</param>
667667
/// <returns>
668-
/// A <see cref="SftpFileSytemInformation"/> instance that contains file status information.
668+
/// A <see cref="SftpFileSystemInformation"/> instance that contains file status information.
669669
/// </returns>
670670
/// <exception cref="SshConnectionException">Client is not connected.</exception>
671671
/// <exception cref="ArgumentNullException"><paramref name="path" /> is <see langword="null"/>.</exception>
672672
/// <exception cref="ObjectDisposedException">The method was called after the client was disposed.</exception>
673-
SftpFileSytemInformation GetStatus(string path);
673+
SftpFileSystemInformation GetStatus(string path);
674674

675675
/// <summary>
676676
/// Asynchronously gets status using statvfs@openssh.com request.
677677
/// </summary>
678678
/// <param name="path">The path.</param>
679679
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to observe.</param>
680680
/// <returns>
681-
/// A <see cref="Task{SftpFileSytemInformation}"/> that represents the status operation.
682-
/// The task result contains the <see cref="SftpFileSytemInformation"/> instance that contains file status information.
681+
/// A <see cref="Task{SftpFileSystemInformation}"/> that represents the status operation.
682+
/// The task result contains the <see cref="SftpFileSystemInformation"/> instance that contains file status information.
683683
/// </returns>
684684
/// <exception cref="SshConnectionException">Client is not connected.</exception>
685685
/// <exception cref="ArgumentNullException"><paramref name="path" /> is <see langword="null"/>.</exception>
686686
/// <exception cref="ObjectDisposedException">The method was called after the client was disposed.</exception>
687-
Task<SftpFileSytemInformation> GetStatusAsync(string path, CancellationToken cancellationToken);
687+
Task<SftpFileSystemInformation> GetStatusAsync(string path, CancellationToken cancellationToken);
688688

689689
/// <summary>
690690
/// Retrieves list of files in remote directory.

src/Renci.SshNet/Sftp/ISftpSession.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ internal interface ISftpSession : ISubsystemSession
370370
/// The file system information for the specified path, or <see langword="null"/> when
371371
/// the request failed and <paramref name="nullOnError"/> is <see langword="true"/>.
372372
/// </returns>
373-
SftpFileSytemInformation RequestStatVfs(string path, bool nullOnError = false);
373+
SftpFileSystemInformation RequestStatVfs(string path, bool nullOnError = false);
374374

375375
/// <summary>
376376
/// Asynchronously performs a <c>statvfs@openssh.com</c> extended request.
@@ -382,7 +382,7 @@ internal interface ISftpSession : ISubsystemSession
382382
/// <see cref="Task{Task}.Result"/> contains the file system information for the specified
383383
/// path.
384384
/// </returns>
385-
Task<SftpFileSytemInformation> RequestStatVfsAsync(string path, CancellationToken cancellationToken);
385+
Task<SftpFileSystemInformation> RequestStatVfsAsync(string path, CancellationToken cancellationToken);
386386

387387
/// <summary>
388388
/// Performs SSH_FXP_SYMLINK request.

src/Renci.SshNet/Sftp/Responses/ExtendedReplies/StatVfsReplyInfo.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ namespace Renci.SshNet.Sftp.Responses
44
{
55
internal sealed class StatVfsReplyInfo : ExtendedReplyInfo
66
{
7-
public SftpFileSytemInformation Information { get; private set; }
7+
public SftpFileSystemInformation Information { get; private set; }
88

99
public override void LoadData(SshDataStream stream)
1010
{
11-
Information = new SftpFileSytemInformation(stream.ReadUInt64(), // FileSystemBlockSize
11+
Information = new SftpFileSystemInformation(stream.ReadUInt64(), // FileSystemBlockSize
1212
stream.ReadUInt64(), // BlockSize
1313
stream.ReadUInt64(), // TotalBlocks
1414
stream.ReadUInt64(), // FreeBlocks

src/Renci.SshNet/Sftp/SftpFileSystemInformation.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Renci.SshNet.Sftp
66
/// Contains File system information exposed by statvfs@openssh.com request.
77
/// </summary>
88
#pragma warning disable SA1649 // File name should match first type name
9-
public class SftpFileSytemInformation
9+
public class SftpFileSystemInformation
1010
#pragma warning restore SA1649 // File name should match first type name
1111
{
1212
#pragma warning disable SA1310 // Field names should not contain underscore
@@ -119,7 +119,7 @@ public bool SupportsSetUid
119119
public ulong MaxNameLenght { get; private set; }
120120

121121
/// <summary>
122-
/// Initializes a new instance of the <see cref="SftpFileSytemInformation" /> class.
122+
/// Initializes a new instance of the <see cref="SftpFileSystemInformation" /> class.
123123
/// </summary>
124124
/// <param name="bsize">The bsize.</param>
125125
/// <param name="frsize">The frsize.</param>
@@ -132,7 +132,7 @@ public bool SupportsSetUid
132132
/// <param name="sid">The sid.</param>
133133
/// <param name="flag">The flag.</param>
134134
/// <param name="namemax">The namemax.</param>
135-
internal SftpFileSytemInformation(ulong bsize, ulong frsize, ulong blocks, ulong bfree, ulong bavail, ulong files, ulong ffree, ulong favail, ulong sid, ulong flag, ulong namemax)
135+
internal SftpFileSystemInformation(ulong bsize, ulong frsize, ulong blocks, ulong bfree, ulong bavail, ulong files, ulong ffree, ulong favail, ulong sid, ulong flag, ulong namemax)
136136
{
137137
FileSystemBlockSize = bsize;
138138
BlockSize = frsize;

src/Renci.SshNet/Sftp/SftpSession.cs

+10-10
Original file line numberDiff line numberDiff line change
@@ -1987,9 +1987,9 @@ public void RequestPosixRename(string oldPath, string newPath)
19871987
/// <param name="path">The path.</param>
19881988
/// <param name="nullOnError">if set to <see langword="true"/> [null on error].</param>
19891989
/// <returns>
1990-
/// A <see cref="SftpFileSytemInformation"/> for the specified path.
1990+
/// A <see cref="SftpFileSystemInformation"/> for the specified path.
19911991
/// </returns>
1992-
public SftpFileSytemInformation RequestStatVfs(string path, bool nullOnError = false)
1992+
public SftpFileSystemInformation RequestStatVfs(string path, bool nullOnError = false)
19931993
{
19941994
if (ProtocolVersion < 3)
19951995
{
@@ -1998,7 +1998,7 @@ public SftpFileSytemInformation RequestStatVfs(string path, bool nullOnError = f
19981998

19991999
SshException exception = null;
20002000

2001-
SftpFileSytemInformation information = null;
2001+
SftpFileSystemInformation information = null;
20022002

20032003
using (var wait = new AutoResetEvent(initialState: false))
20042004
{
@@ -2045,7 +2045,7 @@ public SftpFileSytemInformation RequestStatVfs(string path, bool nullOnError = f
20452045
/// <see cref="Task{Task}.Result"/> contains the file system information for the specified
20462046
/// path.
20472047
/// </returns>
2048-
public async Task<SftpFileSytemInformation> RequestStatVfsAsync(string path, CancellationToken cancellationToken)
2048+
public async Task<SftpFileSystemInformation> RequestStatVfsAsync(string path, CancellationToken cancellationToken)
20492049
{
20502050
if (ProtocolVersion < 3)
20512051
{
@@ -2054,12 +2054,12 @@ public async Task<SftpFileSytemInformation> RequestStatVfsAsync(string path, Can
20542054

20552055
cancellationToken.ThrowIfCancellationRequested();
20562056

2057-
var tcs = new TaskCompletionSource<SftpFileSytemInformation>(TaskCreationOptions.RunContinuationsAsynchronously);
2057+
var tcs = new TaskCompletionSource<SftpFileSystemInformation>(TaskCreationOptions.RunContinuationsAsynchronously);
20582058

20592059
#if NET || NETSTANDARD2_1_OR_GREATER
2060-
await using (cancellationToken.Register(s => ((TaskCompletionSource<SftpFileSytemInformation>)s).TrySetCanceled(cancellationToken), tcs, useSynchronizationContext: false).ConfigureAwait(continueOnCapturedContext: false))
2060+
await using (cancellationToken.Register(s => ((TaskCompletionSource<SftpFileSystemInformation>)s).TrySetCanceled(cancellationToken), tcs, useSynchronizationContext: false).ConfigureAwait(continueOnCapturedContext: false))
20612061
#else
2062-
using (cancellationToken.Register(s => ((TaskCompletionSource<SftpFileSytemInformation>)s).TrySetCanceled(cancellationToken), tcs, useSynchronizationContext: false))
2062+
using (cancellationToken.Register(s => ((TaskCompletionSource<SftpFileSystemInformation>)s).TrySetCanceled(cancellationToken), tcs, useSynchronizationContext: false))
20632063
#endif // NET || NETSTANDARD2_1_OR_GREATER
20642064
{
20652065
SendRequest(new StatVfsRequest(ProtocolVersion,
@@ -2079,10 +2079,10 @@ public async Task<SftpFileSytemInformation> RequestStatVfsAsync(string path, Can
20792079
/// <param name="handle">The file handle.</param>
20802080
/// <param name="nullOnError">if set to <see langword="true"/> [null on error].</param>
20812081
/// <returns>
2082-
/// A <see cref="SftpFileSytemInformation"/> for the specified path.
2082+
/// A <see cref="SftpFileSystemInformation"/> for the specified path.
20832083
/// </returns>
20842084
/// <exception cref="NotSupportedException">This operation is not supported for the current SFTP protocol version.</exception>
2085-
internal SftpFileSytemInformation RequestFStatVfs(byte[] handle, bool nullOnError = false)
2085+
internal SftpFileSystemInformation RequestFStatVfs(byte[] handle, bool nullOnError = false)
20862086
{
20872087
if (ProtocolVersion < 3)
20882088
{
@@ -2091,7 +2091,7 @@ internal SftpFileSytemInformation RequestFStatVfs(byte[] handle, bool nullOnErro
20912091

20922092
SshException exception = null;
20932093

2094-
SftpFileSytemInformation information = null;
2094+
SftpFileSystemInformation information = null;
20952095

20962096
using (var wait = new AutoResetEvent(initialState: false))
20972097
{

src/Renci.SshNet/SftpClient.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1170,12 +1170,12 @@ public void EndUploadFile(IAsyncResult asyncResult)
11701170
/// </summary>
11711171
/// <param name="path">The path.</param>
11721172
/// <returns>
1173-
/// A <see cref="SftpFileSytemInformation"/> instance that contains file status information.
1173+
/// A <see cref="SftpFileSystemInformation"/> instance that contains file status information.
11741174
/// </returns>
11751175
/// <exception cref="SshConnectionException">Client is not connected.</exception>
11761176
/// <exception cref="ArgumentNullException"><paramref name="path" /> is <see langword="null"/>.</exception>
11771177
/// <exception cref="ObjectDisposedException">The method was called after the client was disposed.</exception>
1178-
public SftpFileSytemInformation GetStatus(string path)
1178+
public SftpFileSystemInformation GetStatus(string path)
11791179
{
11801180
CheckDisposed();
11811181

@@ -1200,13 +1200,13 @@ public SftpFileSytemInformation GetStatus(string path)
12001200
/// <param name="path">The path.</param>
12011201
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to observe.</param>
12021202
/// <returns>
1203-
/// A <see cref="Task{SftpFileSytemInformation}"/> that represents the status operation.
1204-
/// The task result contains the <see cref="SftpFileSytemInformation"/> instance that contains file status information.
1203+
/// A <see cref="Task{SftpFileSystemInformation}"/> that represents the status operation.
1204+
/// The task result contains the <see cref="SftpFileSystemInformation"/> instance that contains file status information.
12051205
/// </returns>
12061206
/// <exception cref="SshConnectionException">Client is not connected.</exception>
12071207
/// <exception cref="ArgumentNullException"><paramref name="path" /> is <see langword="null"/>.</exception>
12081208
/// <exception cref="ObjectDisposedException">The method was called after the client was disposed.</exception>
1209-
public async Task<SftpFileSytemInformation> GetStatusAsync(string path, CancellationToken cancellationToken)
1209+
public async Task<SftpFileSystemInformation> GetStatusAsync(string path, CancellationToken cancellationToken)
12101210
{
12111211
CheckDisposed();
12121212

test/Renci.SshNet.Tests/Classes/Sftp/SftpSessionTest_Connected_RequestStatVfs.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class SftpSessionTest_Connected_RequestStatVfs
3535
private StatVfsResponse _sftpStatVfsResponse;
3636
private ulong _bAvail;
3737
private string _path;
38-
private SftpFileSytemInformation _actual;
38+
private SftpFileSystemInformation _actual;
3939

4040
[TestInitialize]
4141
public void Setup()

test/Renci.SshNet.Tests/Classes/Sftp/SftpStatVfsResponseBuilder.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ public SftpStatVfsResponseBuilder WithIsReadOnly(bool isReadOnly)
8989
{
9090
if (isReadOnly)
9191
{
92-
_flag &= SftpFileSytemInformation.SSH_FXE_STATVFS_ST_RDONLY;
92+
_flag &= SftpFileSystemInformation.SSH_FXE_STATVFS_ST_RDONLY;
9393
}
9494
else
9595
{
96-
_flag |= SftpFileSytemInformation.SSH_FXE_STATVFS_ST_RDONLY;
96+
_flag |= SftpFileSystemInformation.SSH_FXE_STATVFS_ST_RDONLY;
9797
}
9898

9999
return this;
@@ -103,11 +103,11 @@ public SftpStatVfsResponseBuilder WithSupportsSetUid(bool supportsSetUid)
103103
{
104104
if (supportsSetUid)
105105
{
106-
_flag |= SftpFileSytemInformation.SSH_FXE_STATVFS_ST_NOSUID;
106+
_flag |= SftpFileSystemInformation.SSH_FXE_STATVFS_ST_NOSUID;
107107
}
108108
else
109109
{
110-
_flag &= SftpFileSytemInformation.SSH_FXE_STATVFS_ST_NOSUID;
110+
_flag &= SftpFileSystemInformation.SSH_FXE_STATVFS_ST_NOSUID;
111111
}
112112

113113
return this;
@@ -121,7 +121,7 @@ public SftpStatVfsResponseBuilder WithNameMax(ulong nameMax)
121121

122122
public StatVfsResponse Build()
123123
{
124-
var fileSystemInfo = new SftpFileSytemInformation(_bsize,
124+
var fileSystemInfo = new SftpFileSystemInformation(_bsize,
125125
_frsize,
126126
_blocks,
127127
_bfree,
@@ -148,7 +148,7 @@ public override SftpMessageTypes SftpMessageType
148148
get { return SftpMessageTypes.ExtendedReply; }
149149
}
150150

151-
public SftpFileSytemInformation Information { get; set; }
151+
public SftpFileSystemInformation Information { get; set; }
152152

153153
public StatVfsResponse(uint protocolVersion)
154154
: base(protocolVersion)
@@ -159,7 +159,7 @@ protected override void LoadData()
159159
{
160160
base.LoadData();
161161

162-
Information = new SftpFileSytemInformation(ReadUInt64(), // FileSystemBlockSize
162+
Information = new SftpFileSystemInformation(ReadUInt64(), // FileSystemBlockSize
163163
ReadUInt64(), // BlockSize
164164
ReadUInt64(), // TotalBlocks
165165
ReadUInt64(), // FreeBlocks

0 commit comments

Comments
 (0)