文件操作 - index.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/path-exists/index.d.ts
编辑文件内容
/** Check if a path exists. @returns Whether the path exists. @example ``` // foo.ts import {pathExists} from 'path-exists'; console.log(await pathExists('foo.ts')); //=> true ``` */ export function pathExists(path: string): Promise<boolean>; /** Synchronously check if a path exists. @returns Whether the path exists. @example ``` // foo.ts import {pathExistsSync} from 'path-exists'; console.log(pathExistsSync('foo.ts')); //=> true ``` */ export function pathExistsSync(path: string): boolean;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件