mirror of
https://github.com/dev-claw/vripper-project.git
synced 2026-08-19 08:35:41 +02:00
Fix a bug in data file
This commit is contained in:
@@ -64,8 +64,7 @@ public class PersistenceService {
|
||||
File dataFile = new File(VripperApplication.dataPath);
|
||||
if (!dataFile.exists()) {
|
||||
try {
|
||||
|
||||
dataFile.mkdirs();
|
||||
dataFile.getParentFile().mkdirs();
|
||||
if (!dataFile.getParentFile().isDirectory() || !dataFile.getParentFile().canWrite()) {
|
||||
logger.error(String.format("Unable to write in %s", dataFile.getParent()));
|
||||
SpringContext.close();
|
||||
|
||||
Reference in New Issue
Block a user