/** * This method will get the store location for the given path, segment id and partition id */ public static void checkAndCreateCarbonDataLocation(String segmentId, CarbonTable carbonTable) { String segmentFolder = CarbonTablePath.getSegmentPath( carbonTable.getTablePath(), segmentId); CarbonUtil.checkAndCreateFolder(segmentFolder); }
configuration.getSegmentId() + ""); CarbonUtil.checkAndCreateFolder(carbonDataDirectoryPath); return carbonDataDirectoryPath;
initPath(); String folderContainingFile = CarbonTablePath.getFolderContainingFile(this.sortIndexFilePath); boolean created = CarbonUtil.checkAndCreateFolder(folderContainingFile); if (!created) { LOGGER.error("Database metadata folder creation status :: " + created);