文件操作 - queue.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/fdir/dist/api/queue.d.ts
编辑文件内容
import { WalkerState } from "../types"; type OnQueueEmptyCallback = (error: Error | null, output: WalkerState) => void; /** * This is a custom stateless queue to track concurrent async fs calls. * It increments a counter whenever a call is queued and decrements it * as soon as it completes. When the counter hits 0, it calls onQueueEmpty. */ export declare class Queue { private readonly onQueueEmpty; private count; constructor(onQueueEmpty: OnQueueEmptyCallback); enqueue(): void; dequeue(error: Error | null, output: WalkerState): void; } export {};
修改文件时间
将文件时间修改为当前时间的前一年
删除文件