Skip to content
Snippets Groups Projects
Commit fad290d5 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- add log error if dir creation not successful

parent bc269ee1
No related branches found
No related tags found
No related merge requests found
Pipeline #6186 passed
...@@ -722,6 +722,9 @@ public class SLUBStoragePlugin extends AbstractStorageHandler { ...@@ -722,6 +722,9 @@ public class SLUBStoragePlugin extends AbstractStorageHandler {
File newDir = new File(getDirRoot() + File.separator + path); File newDir = new File(getDirRoot() + File.separator + path);
//log.debug("SLUBStoragePlugin.getStreamDirectory newDir.getAbsolutePath()=" + newDir.getAbsolutePath()); //log.debug("SLUBStoragePlugin.getStreamDirectory newDir.getAbsolutePath()=" + newDir.getAbsolutePath());
boolean arecreated = newDir.mkdirs(); boolean arecreated = newDir.mkdirs();
if (!arecreated) {
log.error("SLUBStoragePlugin.getStreamDirectory() newDir='" + newDir + "' could not be created");
}
log.info("SLUBStoragePlugin.getStreamDirectory newDir.mkdirs(), directories are created:" + arecreated); log.info("SLUBStoragePlugin.getStreamDirectory newDir.mkdirs(), directories are created:" + arecreated);
return new File(newDir.getAbsolutePath() + File.separator + fileName); return new File(newDir.getAbsolutePath() + File.separator + fileName);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment