Skip to content

Fix file writing mode in WriteToFile method when overwriting#814

Open
teramako wants to merge 1 commit into
PowerShell:mainfrom
teramako:fix_wrong_FileMode
Open

Fix file writing mode in WriteToFile method when overwriting#814
teramako wants to merge 1 commit into
PowerShell:mainfrom
teramako:fix_wrong_FileMode

Conversation

@teramako

@teramako teramako commented Sep 8, 2025

Copy link
Copy Markdown

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.


This change is Reviewable

When overwriting existing content, old data remains without Truncate mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant