@@ -326,7 +326,7 @@ public void CreateDirectory(string path)
326326 {
327327 CheckDisposed ( ) ;
328328
329- if ( path . IsNullOrWhiteSpace ( ) )
329+ if ( string . IsNullOrWhiteSpace ( path ) )
330330 {
331331 throw new ArgumentException ( path ) ;
332332 }
@@ -355,7 +355,7 @@ public void DeleteDirectory(string path)
355355 {
356356 CheckDisposed ( ) ;
357357
358- if ( path . IsNullOrWhiteSpace ( ) )
358+ if ( string . IsNullOrWhiteSpace ( path ) )
359359 {
360360 throw new ArgumentException ( "path" ) ;
361361 }
@@ -384,7 +384,7 @@ public void DeleteFile(string path)
384384 {
385385 CheckDisposed ( ) ;
386386
387- if ( path . IsNullOrWhiteSpace ( ) )
387+ if ( string . IsNullOrWhiteSpace ( path ) )
388388 {
389389 throw new ArgumentException ( "path" ) ;
390390 }
@@ -415,7 +415,7 @@ public async Task DeleteFileAsync(string path, CancellationToken cancellationTok
415415 {
416416 CheckDisposed ( ) ;
417417
418- if ( path . IsNullOrWhiteSpace ( ) )
418+ if ( string . IsNullOrWhiteSpace ( path ) )
419419 {
420420 throw new ArgumentException ( "path" ) ;
421421 }
@@ -542,12 +542,12 @@ public void SymbolicLink(string path, string linkPath)
542542 {
543543 CheckDisposed ( ) ;
544544
545- if ( path . IsNullOrWhiteSpace ( ) )
545+ if ( string . IsNullOrWhiteSpace ( path ) )
546546 {
547547 throw new ArgumentException ( "path" ) ;
548548 }
549549
550- if ( linkPath . IsNullOrWhiteSpace ( ) )
550+ if ( string . IsNullOrWhiteSpace ( linkPath ) )
551551 {
552552 throw new ArgumentException ( "linkPath" ) ;
553553 }
@@ -753,7 +753,7 @@ public bool Exists(string path)
753753 {
754754 CheckDisposed ( ) ;
755755
756- if ( path . IsNullOrWhiteSpace ( ) )
756+ if ( string . IsNullOrWhiteSpace ( path ) )
757757 {
758758 throw new ArgumentException ( "path" ) ;
759759 }
@@ -882,7 +882,7 @@ public IAsyncResult BeginDownloadFile(string path, Stream output, AsyncCallback
882882 {
883883 CheckDisposed ( ) ;
884884
885- if ( path . IsNullOrWhiteSpace ( ) )
885+ if ( string . IsNullOrWhiteSpace ( path ) )
886886 {
887887 throw new ArgumentException ( "path" ) ;
888888 }
@@ -1109,7 +1109,7 @@ public IAsyncResult BeginUploadFile(Stream input, string path, bool canOverride,
11091109 throw new ArgumentNullException ( nameof ( input ) ) ;
11101110 }
11111111
1112- if ( path . IsNullOrWhiteSpace ( ) )
1112+ if ( string . IsNullOrWhiteSpace ( path ) )
11131113 {
11141114 throw new ArgumentException ( "path" ) ;
11151115 }
@@ -2106,7 +2106,7 @@ public IEnumerable<FileInfo> SynchronizeDirectories(string sourcePath, string de
21062106 throw new ArgumentNullException ( nameof ( sourcePath ) ) ;
21072107 }
21082108
2109- if ( destinationPath . IsNullOrWhiteSpace ( ) )
2109+ if ( string . IsNullOrWhiteSpace ( destinationPath ) )
21102110 {
21112111 throw new ArgumentException ( "destinationPath" ) ;
21122112 }
@@ -2135,7 +2135,7 @@ public IAsyncResult BeginSynchronizeDirectories(string sourcePath, string destin
21352135 throw new ArgumentNullException ( nameof ( sourcePath ) ) ;
21362136 }
21372137
2138- if ( destinationPath . IsNullOrWhiteSpace ( ) )
2138+ if ( string . IsNullOrWhiteSpace ( destinationPath ) )
21392139 {
21402140 throw new ArgumentException ( "destDir" ) ;
21412141 }
@@ -2340,7 +2340,7 @@ private void InternalDownloadFile(string path, Stream output, SftpDownloadAsyncR
23402340 throw new ArgumentNullException ( nameof ( output ) ) ;
23412341 }
23422342
2343- if ( path . IsNullOrWhiteSpace ( ) )
2343+ if ( string . IsNullOrWhiteSpace ( path ) )
23442344 {
23452345 throw new ArgumentException ( "path" ) ;
23462346 }
@@ -2404,7 +2404,7 @@ private void InternalUploadFile(Stream input, string path, Flags flags, SftpUplo
24042404 throw new ArgumentNullException ( nameof ( input ) ) ;
24052405 }
24062406
2407- if ( path . IsNullOrWhiteSpace ( ) )
2407+ if ( string . IsNullOrWhiteSpace ( path ) )
24082408 {
24092409 throw new ArgumentException ( "path" ) ;
24102410 }
0 commit comments