文件操作 - commit.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/lodash/commit.js
编辑文件内容
var LodashWrapper = require('./_LodashWrapper'); /** * Executes the chain sequence and returns the wrapped result. * * @name commit * @memberOf _ * @since 3.2.0 * @category Seq * @returns {Object} Returns the new `lodash` wrapper instance. * @example * * var array = [1, 2]; * var wrapped = _(array).push(3); * * console.log(array); * // => [1, 2] * * wrapped = wrapped.commit(); * console.log(array); * // => [1, 2, 3] * * wrapped.last(); * // => 3 * * console.log(array); * // => [1, 2, 3] */ function wrapperCommit() { return new LodashWrapper(this.value(), this.__chain__); } module.exports = wrapperCommit;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件