String parent = f.getParent();
try
{
if (!Utils.createDirectory(parent))
{
throw new ApplicationException(
ReturnCode.FILE_SYSTEM_ACCESS_ERROR,
INFO_ERROR_COULD_NOT_CREATE_PARENT_DIR.get(parent), null);
}
}
catch (IOException ioe)
{
throw new ApplicationException(
ReturnCode.FILE_SYSTEM_ACCESS_ERROR,
INFO_ERROR_COULD_NOT_CREATE_PARENT_DIR.get(parent),
ioe);
}
}