this.root = new File(root, "papoose");
if (!this.root.exists())
{
if (!this.root.mkdirs()) throw new FatalError("Unable to create non-existant root: " + this.root);
}
else
{
File propertiesFile = new File(this.root, PROPERTIES_FILE);
if (propertiesFile.exists())
{
load();
}
else
{
properties.put(FILESTORE_VERSION_KEY, FILESTORE_VERSION);
save();
}
}
File bundlesRoot = new File(this.root, BUNDLES_DIR);
if (!bundlesRoot.exists() && !bundlesRoot.mkdirs()) throw new FatalError("Unable to create bundles root: " + bundlesRoot);
if (LOGGER.isLoggable(Level.CONFIG)) LOGGER.config("root: " + this.root);
LOGGER.exiting(CLASS_NAME, "FileStore");
}