* @param location directory location
* @return Directory (which may be newly created) or null if not found
* @deprecated Unused
*/
private File dataDir(boolean create, String... location) throws IOException {
Resource directory = get(Paths.path("data", Paths.path(location)));
if (create) {
return directory.dir();
} else {
return Resources.directory(directory);
}
}