文件操作 - index.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/for-own/index.js
编辑文件内容
/*! * for-own <https://github.com/jonschlinkert/for-own> * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ 'use strict'; var forIn = require('for-in'); var hasOwn = Object.prototype.hasOwnProperty; module.exports = function forOwn(obj, fn, thisArg) { forIn(obj, function(val, key) { if (hasOwn.call(obj, key)) { return fn.call(thisArg, obj[key], key, obj); } }); };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件