You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(ex.Message.Contains("The directory is not empty")&&psVersion.StartsWith("5"))
1716
+
{
1717
+
// there is a known bug with WindowsPowerShell and OneDrive based module paths, where .NET Directory.Delete() will throw a 'The directory is not empty.' error.
1718
+
thrownewException(string.Format("Cannot uninstall module with OneDrive based path on Windows PowerShell due to .NET issue. Try installing and uninstalling using PowerShell 7+ if using OneDrive."),ex);
1719
+
}
1720
+
1721
+
thrownewException(string.Format("Access denied to path while deleting path {0}",dirPath),ex);
0 commit comments