tmrts / boilr

:zap: boilerplate template manager that generates files or directories from template repositories
Apache License 2.0
1.73k stars 119 forks source link

Add os.O_TRUNC flag to os.OpenFile to solve trailing junk issue. #63

Open ax-nathan opened 6 years ago

ax-nathan commented 6 years ago

Without the O_TRUNC flag, if boilr is run more than once, and the resulting output is shorter than the previous run, then the resulting files have leftovers at the end from the previous file contents.

philoserf commented 6 years ago

Ping @tmrts