GoalModelEditor/BackEnd/routes/template.js
/** Recursively creates the whole path to a directory
 * @param filepath : the full path of the directory that is to be created
 */
Recursively creates the whole path to a directory
@param filepath : the full path of the directory that is to be created
Recursively creates the whole path to a directory @param filepath : the full path of the directory that is to be created
function createDirectoryPath(filepath) {
    if (fs.existsSync(filepath)) {
        return true;
    }
    let dirname = path.dirname(filepath);
    createDirectoryPath(dirname);
    fs.mkdirSync(filepath);
}
function createDirectoryPath ( filepath ) { if ( fs . existsSync ( filepath ) ) { return true ; } let dirname = path . dirname ( filepath ) ; createDirectoryPath ( dirname ) ; fs . mkdirSync ( filepath ) ; }
Recursively creates the whole path to a directory
 @param filepath : the full path of the directory that is to be created
Recursively creates the whole path to a directory @param filepath : the full path of the directory that is to be created