platyPS icon indicating copy to clipboard operation
platyPS copied to clipboard

Fix file writing mode in WriteToFile method when overwriting

Open teramako opened this issue 3 months ago • 0 comments

PR Summary

Set FileMode to Truncate when overwriting existing content,

PR Context

I noticed that when I overwrite Maml help with Export-MamlCommandHelp -Force, which results in a smaller file size than before, the previous data remains at the end.

teramako avatar Sep 08 '25 05:09 teramako