Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(internal/aliasfix): properly truncate and backup files (#6637)
- Use os.Create to truncate existing file if needed - Use named imports to capture error - Create a bak incase anything goes wrong. We don't want to delete peoples code :) - Bubble up error if any from WalkDir
- Loading branch information
Showing
1 changed file
with
39 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters