Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 2.02 KB

CHANGELOG.md

File metadata and controls

53 lines (38 loc) · 2.02 KB

Changelog for WinDirOps

The format is based on and uses the types of changes according to Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

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