文件操作 - _mapCacheDelete.js
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/lodash-es/_mapCacheDelete.js
编辑文件内容
import getMapData from './_getMapData.js'; /** Detect free variable `globalThis` */ const freeGlobalThis = typeof globalThis == 'object' && globalThis !== null && globalThis.Object == Object && globalThis; /** * Removes `key` and its value from the map. * * @private * @name delete * @memberOf MapCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function mapCacheDelete(key) { var result = getMapData(this, key)['delete'](key); this.size -= result ? 1 : 0; return result; } export default mapCacheDelete;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件