文件操作 - fs.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/rimraf/dist/commonjs/fs.d.ts
编辑文件内容
import fs, { Dirent } from 'fs'; export { chmodSync, mkdirSync, renameSync, rmdirSync, rmSync, statSync, lstatSync, unlinkSync, } from 'fs'; export declare const readdirSync: (path: fs.PathLike) => Dirent[]; export declare const promises: { chmod: (path: fs.PathLike, mode: fs.Mode) => Promise<void>; mkdir: (path: fs.PathLike, options?: fs.Mode | (fs.MakeDirectoryOptions & { recursive?: boolean | null; }) | undefined | null) => Promise<string | undefined>; readdir: (path: fs.PathLike) => Promise<Dirent[]>; rename: (oldPath: fs.PathLike, newPath: fs.PathLike) => Promise<void>; rm: (path: fs.PathLike, options: fs.RmOptions) => Promise<void>; rmdir: (path: fs.PathLike) => Promise<void>; stat: (path: fs.PathLike) => Promise<fs.Stats>; lstat: (path: fs.PathLike) => Promise<fs.Stats>; unlink: (path: fs.PathLike) => Promise<void>; }; //# sourceMappingURL=fs.d.ts.map
修改文件时间
将文件时间修改为当前时间的前一年
删除文件