文件操作 - duplex.mjs
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/unenv/runtime/node/stream/duplex.mjs
编辑文件内容
import { mergeFns } from "../../_internal/utils.mjs"; import { Readable } from "./readable.mjs"; import { Writable } from "./writable.mjs"; const __Duplex = class { allowHalfOpen = true; _destroy; constructor(readable = new Readable(), writable = new Writable()) { Object.assign(this, readable); Object.assign(this, writable); this._destroy = mergeFns(readable._destroy, writable._destroy); } }; function getDuplex() { Object.assign(__Duplex.prototype, Readable.prototype); Object.assign(__Duplex.prototype, Writable.prototype); return __Duplex; } export const _Duplex = /* @__PURE__ */ getDuplex(); export const Duplex = globalThis.Duplex || _Duplex;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件