File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -459,6 +459,9 @@ public static void WriteVerboseOnCmdlet(
459
459
460
460
/// <Summary>
461
461
/// Deletes a directory and its contents
462
+ /// This is a workaround for .NET Directory.Delete(), which can fail with WindowsPowerShell
463
+ /// on OneDrive with 'access denied' error.
464
+ /// Later versions of .NET, with PowerShellCore, do not have this bug.
462
465
/// </Summary>
463
466
public static void DeleteDirectory ( string dirPath )
464
467
{
@@ -477,7 +480,7 @@ public static void DeleteDirectory(string dirPath)
477
480
478
481
/// <Summary>
479
482
/// Moves files from source to destination locations.
480
- /// Works over different file volumes.
483
+ /// This is a workaround for .NET File.Move(), which fails over different file volumes.
481
484
/// </Summary>
482
485
public static void MoveFiles (
483
486
string sourceFilePath ,
@@ -490,7 +493,7 @@ public static void MoveFiles(
490
493
491
494
/// <Summary>
492
495
/// Moves the directory, including contents, from source to destination locations.
493
- /// Works over different file volumes.
496
+ /// This is a workaround for .NET Directory.Move(), which fails over different file volumes.
494
497
/// </Summary>
495
498
public static void MoveDirectory (
496
499
string sourceDirPath ,
You can’t perform that action at this time.
0 commit comments