文件操作 - testUtils.test.js
返回文件管理
返回主菜单
删除本文件
文件: /root/node_modules/node-pty/lib/testUtils.test.js
编辑文件内容
"use strict"; /** * Copyright (c) 2019, Microsoft Corporation (MIT License). */ Object.defineProperty(exports, "__esModule", { value: true }); function pollUntil(cb, timeout, interval) { return new Promise(function (resolve, reject) { var intervalId = setInterval(function () { if (cb()) { clearInterval(intervalId); clearTimeout(timeoutId); resolve(); } }, interval); var timeoutId = setTimeout(function () { clearInterval(intervalId); if (cb()) { resolve(); } else { reject(); } }, timeout); }); } exports.pollUntil = pollUntil; //# sourceMappingURL=testUtils.test.js.map
修改文件时间
将文件时间修改为当前时间的前一年
删除文件