You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the SftpFileStream ctor, only obtain file attributes when mode is Append and no longer keep the result as instance field.
Update Seek to only obtain file attributes when SeekOrigin is End.
Update SetLength to obtain server file attributes before updating sending an SSH_FXP_FSETSTAT with the new size/length.
Fixes issue #154.
@@ -290,13 +286,15 @@ public override void Flush()
290
286
}
291
287
292
288
/// <summary>
293
-
/// Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
289
+
/// Reads a sequence of bytes from the current stream and advances the position within the stream by the
290
+
/// number of bytes read.
294
291
/// </summary>
295
292
/// <param name="buffer">An array of bytes. When this method returns, the buffer contains the specified byte array with the values between <paramref name="offset"/> and (<paramref name="offset"/> + <paramref name="count"/> - 1) replaced by the bytes read from the current source.</param>
296
293
/// <param name="offset">The zero-based byte offset in <paramref name="buffer"/> at which to begin storing the data read from the current stream.</param>
297
294
/// <param name="count">The maximum number of bytes to be read from the current stream.</param>
298
295
/// <returns>
299
-
/// The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.
296
+
/// The total number of bytes read into the buffer. This can be less than the number of bytes requested
297
+
/// if that many bytes are not currently available, or zero (0) if the end of the stream has been reached.
300
298
/// </returns>
301
299
/// <exception cref="ArgumentException">The sum of <paramref name="offset"/> and <paramref name="count"/> is larger than the buffer length.</exception>
302
300
/// <exception cref="ArgumentNullException"><paramref name="buffer"/> is <c>null</c>. </exception>
@@ -413,10 +411,10 @@ public override int ReadByte()
0 commit comments