-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always fully clear temporary directories
Make sure TempDirectory dtor always removes Poedit's temporary directory completely, without errors. There were two subtle bugs in the old code: 1. Poedit would try to rmdir the directory even with --keep-temp-files. This would fail because the files weren't deleted. 2. If something created unexpected extra files, rmdir would fail too. Fix both by recursively deleting the directory with its content, instead of doing the same thing manually, but only for recognized files. As a bonus, make the code slightly simpler. See umpirsky/Twig-Gettext-Extractor#12
- Loading branch information
Showing
2 changed files
with
8 additions
and
16 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
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