文件操作 - errors.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@humanfs/core/dist/errors.d.ts
编辑文件内容
/** * @fileoverview Common error classes * @author Nicholas C. Zakas */ /** * Error thrown when a file or directory is not found. */ export class NotFoundError extends Error { /** * Creates a new instance. * @param {string} message The error message. */ constructor(message: string); /** * Error code. * @type {string} */ code: string; } /** * Error thrown when an operation is not permitted. */ export class PermissionError extends Error { /** * Creates a new instance. * @param {string} message The error message. */ constructor(message: string); /** * Error code. * @type {string} */ code: string; } /** * Error thrown when an operation is not allowed on a directory. */ export class DirectoryError extends Error { /** * Creates a new instance. * @param {string} message The error message. */ constructor(message: string); /** * Error code. * @type {string} */ code: string; } /** * Error thrown when a directory is not empty. */ export class NotEmptyError extends Error { /** * Creates a new instance. * @param {string} message The error message. */ constructor(message: string); /** * Error code. * @type {string} */ code: string; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件