add boolean for wether configfile is present

This commit is contained in:
Phil Kunz
2016-07-18 20:29:29 +02:00
parent 540e7610af
commit ec56eb75c2
5 changed files with 28 additions and 2 deletions

View File

@ -48,4 +48,8 @@ export let dataFor = (optionsArg:IDataFor) => {
} else {
return allData;
}
};
export let configFilePresent = ():boolean => {
return plugins.smartfile.fs.fileExistsSync(paths.configFile);
}