[v0.2.0]
Added
-
Added core functions
-
Updated build file for release
-
Added new function
Invoke-MirRoboCopyto wrap robocopy functionality -
Added
ShouldProcesssupport to all public directory-related functions to enable
safer operations using-WhatIfand-Confirm:- Functions updated:
Clear-DirectoryClear-DirectoryContentsRemove-LocalDirectoryRemove-RemoteDirectoryRemove-DirectoryByTypeInvoke-MirRoboCopy
- Functions updated:
-
Added remote computer availability check using
Test-ComputerPing
(see WisherTools.Helpers)
for functions dealing with remote directories (Remove-RemoteDirectoryand
Remove-DirectoryByType). These functions now return aFolderDeletionResult
indicating if the computer is offline and abort the operation if it is unreachable. -
Added enhanced error handling to return detailed failure messages, including
when a remote computer is offline or the deletion operation fails. -
Created
Invoke-RobocopyCommandas a private wrapper for robocopy -
Created
New-FolderDeletionResultforFolderDeletionResultobject creation
Changed
-
Updated functions to implement
Invoke-MirRoboCopyfor faster and safer
directory content clearing using robocopy. -
Suppressed nested confirmation prompts in internal function calls by passing
-Confirm:$falseto internal operations, preventing multiple confirmation
requests during execution. -
Improved comment-based help for all functions to clearly explain local vs.
remote operations, the role ofShouldProcess, and how the
remote computer checks are handled. -
updated
Remove-LocalDirectoryandRemove-RemoteDirectoryto use new wrapper
functionNew-FolderDeletionResultforFolderDeletionResultobject creation