文件操作 - index.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@nodelib/fs.scandir/out/types/index.d.ts
编辑文件内容
/// <reference types="node" /> import type * as fs from 'fs'; export interface Entry { dirent: Dirent; name: string; path: string; stats?: Stats; } export declare type Stats = fs.Stats; export declare type ErrnoException = NodeJS.ErrnoException; export interface Dirent { isBlockDevice: () => boolean; isCharacterDevice: () => boolean; isDirectory: () => boolean; isFIFO: () => boolean; isFile: () => boolean; isSocket: () => boolean; isSymbolicLink: () => boolean; name: string; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件