文件操作 - path-arg.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@mapbox/node-pre-gyp/node_modules/mkdirp/dist/cjs/src/path-arg.js
编辑文件内容
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.pathArg = void 0; const platform = process.env.__TESTING_MKDIRP_PLATFORM__ || process.platform; const path_1 = require("path"); const pathArg = (path) => { if (/\0/.test(path)) { // simulate same failure that node raises throw Object.assign(new TypeError('path must be a string without null bytes'), { path, code: 'ERR_INVALID_ARG_VALUE', }); } path = (0, path_1.resolve)(path); if (platform === 'win32') { const badWinChars = /[*|"<>?:]/; const { root } = (0, path_1.parse)(path); if (badWinChars.test(path.substring(root.length))) { throw Object.assign(new Error('Illegal characters in path.'), { path, code: 'EINVAL', }); } } return path; }; exports.pathArg = pathArg; //# sourceMappingURL=path-arg.js.map
修改文件时间
将文件时间修改为当前时间的前一年
删除文件