*/
public static void createDirectory(String rootPath, String directoryName) throws FileException {
File f = new File(rootPath + "/" + directoryName);
boolean result;
if (f.exists()) {
throw new FileException("Directory already exists");
} else {
result = f.mkdir();
if (!result) {
throw new FileException("Directory could not be created for unknown reason");
}
}
}