The format is based on and uses the types of changes according to Keep a Changelog, and this project adheres to Semantic Versioning.
-
Added core functions
-
Updated build file for release
-
Added new function
Invoke-MirRoboCopy
to wrap robocopy functionality -
Added
ShouldProcess
support to all public directory-related functions to enable safer operations using-WhatIf
and-Confirm
:- Functions updated:
Clear-Directory
Clear-DirectoryContents
Remove-LocalDirectory
Remove-RemoteDirectory
Remove-DirectoryByType
Invoke-MirRoboCopy
- Functions updated:
-
Added remote computer availability check using
Test-ComputerPing
(see WisherTools.Helpers) for functions dealing with remote directories (Remove-RemoteDirectory
andRemove-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-RobocopyCommand
as a private wrapper for robocopy -
Created
New-FolderDeletionResult
forFolderDeletionResult
object creation
-
Updated functions to implement
Invoke-MirRoboCopy
for faster and safer directory content clearing using robocopy. -
Suppressed nested confirmation prompts in internal function calls by passing
-Confirm:$false
to internal operations, preventing multiple confirmation requests during execution. -
Improved comment-based help for all functions to clearly explain local vs. remote operations, the role of
ShouldProcess
, and how the remote computer checks are handled. -
updated
Remove-LocalDirectory
andRemove-RemoteDirectory
to use new wrapper functionNew-FolderDeletionResult
forFolderDeletionResult
object creation