|
|
@ -48,6 +48,20 @@ public class Directories {
|
|
|
|
new File(dataHomeDirectory).mkdirs();
|
|
|
|
new File(dataHomeDirectory).mkdirs();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Create a subdirectory.
|
|
|
|
|
|
|
|
* @param subdir Name of subdirectory to create
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public void createSubdir(String subdir) {
|
|
|
|
|
|
|
|
String d = dataHomeDirectory;
|
|
|
|
|
|
|
|
if (subdir != null) {
|
|
|
|
|
|
|
|
d += subdir;
|
|
|
|
|
|
|
|
if (!subdir.endsWith("/")) {
|
|
|
|
|
|
|
|
d += "/";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
new File(d).mkdirs();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/** Getter for dataHomeDirectory.
|
|
|
|
/** Getter for dataHomeDirectory.
|
|
|
|
* @return path to the application home directory
|
|
|
|
* @return path to the application home directory
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|