mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Fixed too large temp files creation for svg icons on startup
This commit is contained in:
parent
8b8392f42c
commit
09f5af154e
4 changed files with 46 additions and 22 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue