Fixed too large temp files creation for svg icons on startup

This commit is contained in:
Oleg Agafonov 2018-08-20 17:52:30 +04:00
parent 8b8392f42c
commit 09f5af154e
4 changed files with 46 additions and 22 deletions

View file

@ -41,6 +41,7 @@ public class CounterPluginImpl implements CounterPlugin {
File data = new File(PLUGIN_DATA_FOLDER_PATH + File.separator + DATA_STORAGE_FILE);
if (!data.exists()) {
try {
data.getParentFile().mkdirs();
data.createNewFile();
} catch (IOException e) {
log.error(e.getMessage(), e);