Skip to content

Commit c921b0c

Browse files
authored
Add clarifying comments to util functions (#454)
1 parent 47b7ad9 commit c921b0c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/code/Utils.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,9 @@ public static void WriteVerboseOnCmdlet(
459459

460460
/// <Summary>
461461
/// 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.
462465
/// </Summary>
463466
public static void DeleteDirectory(string dirPath)
464467
{
@@ -477,7 +480,7 @@ public static void DeleteDirectory(string dirPath)
477480

478481
/// <Summary>
479482
/// 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.
481484
/// </Summary>
482485
public static void MoveFiles(
483486
string sourceFilePath,
@@ -490,7 +493,7 @@ public static void MoveFiles(
490493

491494
/// <Summary>
492495
/// 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.
494497
/// </Summary>
495498
public static void MoveDirectory(
496499
string sourceDirPath,

0 commit comments

Comments
 (0)