File child = new File(currentParent, name); if( false == child.exists() ){ Files.createDirectory(child); } else if( false == child.isDirectory() ) { throw new Exception("Attachment path is not a directory: "+child.getAbsolutePath());
Files.createDirectory(attachmentDir);
Files.createDirectory(dumpDir);