You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import * as config from '../config'
|
|
|
|
|
|
|
|
import * as fs from 'fs';
|
|
|
|
|
|
|
|
|
|
|
|
// see analytics/pattern_detection_model.py with folders available
|
|
|
|
|
|
|
|
function maybeCreate(path: string): void {
|
|
|
|
if(fs.existsSync(path)) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
fs.mkdirSync(path);
|
|
|
|
}
|
|
|
|
|
|
|
|
export function checkDataFolders(): void {
|
|
|
|
[
|
|
|
|
config.DATA_PATH,
|
|
|
|
config.DATASETS_PATH,
|
|
|
|
config.ANALYTIC_UNITS_PATH,
|
|
|
|
config.MODELS_PATH,
|
|
|
|
config.METRICS_PATH,
|
|
|
|
config.SEGMENTS_PATH
|
|
|
|
].forEach(maybeCreate);
|
|
|
|
}
|