Skip to content

v0.2.0

Latest

Choose a tag to compare

@LarryWisherMan LarryWisherMan released this 10 Sep 23:28
ef98550

[v0.2.0]

Added

  • 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
  • Added remote computer availability check using Test-ComputerPing
    (see WisherTools.Helpers)
    for functions dealing with remote directories (Remove-RemoteDirectory and
    Remove-DirectoryByType). These functions now return a FolderDeletionResult
    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 for FolderDeletionResult object creation

Changed

  • 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 and Remove-RemoteDirectory to use new wrapper
    function New-FolderDeletionResult for FolderDeletionResult object creation