@@ -326,7 +326,7 @@ public void CreateDirectory(string path)
326
326
{
327
327
CheckDisposed ( ) ;
328
328
329
- if ( path . IsNullOrWhiteSpace ( ) )
329
+ if ( string . IsNullOrWhiteSpace ( path ) )
330
330
{
331
331
throw new ArgumentException ( path ) ;
332
332
}
@@ -355,7 +355,7 @@ public void DeleteDirectory(string path)
355
355
{
356
356
CheckDisposed ( ) ;
357
357
358
- if ( path . IsNullOrWhiteSpace ( ) )
358
+ if ( string . IsNullOrWhiteSpace ( path ) )
359
359
{
360
360
throw new ArgumentException ( "path" ) ;
361
361
}
@@ -384,7 +384,7 @@ public void DeleteFile(string path)
384
384
{
385
385
CheckDisposed ( ) ;
386
386
387
- if ( path . IsNullOrWhiteSpace ( ) )
387
+ if ( string . IsNullOrWhiteSpace ( path ) )
388
388
{
389
389
throw new ArgumentException ( "path" ) ;
390
390
}
@@ -415,7 +415,7 @@ public async Task DeleteFileAsync(string path, CancellationToken cancellationTok
415
415
{
416
416
CheckDisposed ( ) ;
417
417
418
- if ( path . IsNullOrWhiteSpace ( ) )
418
+ if ( string . IsNullOrWhiteSpace ( path ) )
419
419
{
420
420
throw new ArgumentException ( "path" ) ;
421
421
}
@@ -542,12 +542,12 @@ public void SymbolicLink(string path, string linkPath)
542
542
{
543
543
CheckDisposed ( ) ;
544
544
545
- if ( path . IsNullOrWhiteSpace ( ) )
545
+ if ( string . IsNullOrWhiteSpace ( path ) )
546
546
{
547
547
throw new ArgumentException ( "path" ) ;
548
548
}
549
549
550
- if ( linkPath . IsNullOrWhiteSpace ( ) )
550
+ if ( string . IsNullOrWhiteSpace ( linkPath ) )
551
551
{
552
552
throw new ArgumentException ( "linkPath" ) ;
553
553
}
@@ -753,7 +753,7 @@ public bool Exists(string path)
753
753
{
754
754
CheckDisposed ( ) ;
755
755
756
- if ( path . IsNullOrWhiteSpace ( ) )
756
+ if ( string . IsNullOrWhiteSpace ( path ) )
757
757
{
758
758
throw new ArgumentException ( "path" ) ;
759
759
}
@@ -882,7 +882,7 @@ public IAsyncResult BeginDownloadFile(string path, Stream output, AsyncCallback
882
882
{
883
883
CheckDisposed ( ) ;
884
884
885
- if ( path . IsNullOrWhiteSpace ( ) )
885
+ if ( string . IsNullOrWhiteSpace ( path ) )
886
886
{
887
887
throw new ArgumentException ( "path" ) ;
888
888
}
@@ -1109,7 +1109,7 @@ public IAsyncResult BeginUploadFile(Stream input, string path, bool canOverride,
1109
1109
throw new ArgumentNullException ( nameof ( input ) ) ;
1110
1110
}
1111
1111
1112
- if ( path . IsNullOrWhiteSpace ( ) )
1112
+ if ( string . IsNullOrWhiteSpace ( path ) )
1113
1113
{
1114
1114
throw new ArgumentException ( "path" ) ;
1115
1115
}
@@ -2106,7 +2106,7 @@ public IEnumerable<FileInfo> SynchronizeDirectories(string sourcePath, string de
2106
2106
throw new ArgumentNullException ( nameof ( sourcePath ) ) ;
2107
2107
}
2108
2108
2109
- if ( destinationPath . IsNullOrWhiteSpace ( ) )
2109
+ if ( string . IsNullOrWhiteSpace ( destinationPath ) )
2110
2110
{
2111
2111
throw new ArgumentException ( "destinationPath" ) ;
2112
2112
}
@@ -2135,7 +2135,7 @@ public IAsyncResult BeginSynchronizeDirectories(string sourcePath, string destin
2135
2135
throw new ArgumentNullException ( nameof ( sourcePath ) ) ;
2136
2136
}
2137
2137
2138
- if ( destinationPath . IsNullOrWhiteSpace ( ) )
2138
+ if ( string . IsNullOrWhiteSpace ( destinationPath ) )
2139
2139
{
2140
2140
throw new ArgumentException ( "destDir" ) ;
2141
2141
}
@@ -2340,7 +2340,7 @@ private void InternalDownloadFile(string path, Stream output, SftpDownloadAsyncR
2340
2340
throw new ArgumentNullException ( nameof ( output ) ) ;
2341
2341
}
2342
2342
2343
- if ( path . IsNullOrWhiteSpace ( ) )
2343
+ if ( string . IsNullOrWhiteSpace ( path ) )
2344
2344
{
2345
2345
throw new ArgumentException ( "path" ) ;
2346
2346
}
@@ -2404,7 +2404,7 @@ private void InternalUploadFile(Stream input, string path, Flags flags, SftpUplo
2404
2404
throw new ArgumentNullException ( nameof ( input ) ) ;
2405
2405
}
2406
2406
2407
- if ( path . IsNullOrWhiteSpace ( ) )
2407
+ if ( string . IsNullOrWhiteSpace ( path ) )
2408
2408
{
2409
2409
throw new ArgumentException ( "path" ) ;
2410
2410
}
0 commit comments