文件操作 - fs.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts
编辑文件内容
/// <reference types="node" /> import * as fs from 'fs'; import type { ErrnoException } from '../types'; export declare type StatAsynchronousMethod = (path: string, callback: (error: ErrnoException | null, stats: fs.Stats) => void) => void; export declare type StatSynchronousMethod = (path: string) => fs.Stats; export interface FileSystemAdapter { lstat: StatAsynchronousMethod; stat: StatAsynchronousMethod; lstatSync: StatSynchronousMethod; statSync: StatSynchronousMethod; } export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter; export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件