cevuel-cli
Version:
Create element-ui project with vue<br/> Help you build a new project faster with configuration and title
26 lines (24 loc) • 489 B
JavaScript
const fs = require('fs');
const path = require("path");
module.exports = {
FsisAccess(filePath) {
try {
fs.statSync(filePath);
return true;
} catch (e) {
return false
}
},
creatDir(filesPath) {
if (fs.existsSync(filesPath)) {
return true;
} else {
if (this.creatDir(path.dirname(filesPath))) {
fs.mkdirSync(filesPath);
return true;
}
}
return false;
},
}