first commit

This commit is contained in:
编码猿
2024-09-27 01:14:21 +08:00
commit 5ddcc17391
52 changed files with 1176 additions and 0 deletions

20
shell/utils.js Normal file
View File

@@ -0,0 +1,20 @@
const { readdirSync} = require("fs");
const { join } = require("path");
class Utils {
/**
* 读取指定路径下的第一级文件夹目录
* @param dirName
* @returns {string[]}
*/
static getDirList (dirName) {
return readdirSync(`${join(__dirname, dirName)}`)
}
static checkActionType(v) {
return v.includes("operate_")
}
}
module.exports = Utils