File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
using System ;
2
-
3
2
using System . Collections . Generic ;
4
3
using System . Diagnostics . CodeAnalysis ;
5
4
using System . IO ;
@@ -1425,6 +1424,9 @@ public string[] ReadAllLines(string path)
1425
1424
/// <exception cref="ObjectDisposedException">The method was called after the client was disposed.</exception>
1426
1425
public string [ ] ReadAllLines ( string path , Encoding encoding )
1427
1426
{
1427
+ // we use the default buffer size for StreamReader - which is 1024 bytes - and the configured buffer size
1428
+ // for the SftpFileStream; may want to revisit this later
1429
+
1428
1430
var lines = new List < string > ( ) ;
1429
1431
using ( var stream = new StreamReader ( OpenRead ( path ) , encoding ) )
1430
1432
{
@@ -1464,6 +1466,9 @@ public string ReadAllText(string path)
1464
1466
/// <exception cref="ObjectDisposedException">The method was called after the client was disposed.</exception>
1465
1467
public string ReadAllText ( string path , Encoding encoding )
1466
1468
{
1469
+ // we use the default buffer size for StreamReader - which is 1024 bytes - and the configured buffer size
1470
+ // for the SftpFileStream; may want to revisit this later
1471
+
1467
1472
using ( var stream = new StreamReader ( OpenRead ( path ) , encoding ) )
1468
1473
{
1469
1474
return stream . ReadToEnd ( ) ;
You can’t perform that action at this time.
0 commit comments