文件操作 - reusify.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/reusify/reusify.js
编辑文件内容
'use strict' function reusify (Constructor) { var head = new Constructor() var tail = head function get () { var current = head if (current.next) { head = current.next } else { head = new Constructor() tail = head } current.next = null return current } function release (obj) { tail.next = obj tail = obj } return { get: get, release: release } } module.exports = reusify
修改文件时间
将文件时间修改为当前时间的前一年
删除文件