create_file & create_dir
- 根据 path 创建文件 若缺少文件或者文件夹将自动创建
- 分析文件路径
Node-代码段
create_file & create_dir
1 | const create_dir = (path) => { |
分析文件路径
1 | const glob = require("glob"); |
根据 path 创建文件
1 | const fs = require("fs"); |
前端小学生
create_file & create_dir
1 | const create_dir = (path) => { |
1 | const glob = require("glob"); |
1 | const fs = require("fs"); |