文件操作 - no-channel-trailing-slash.js
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@redocly/openapi-core/lib/rules/async2/no-channel-trailing-slash.js
编辑文件内容
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NoChannelTrailingSlash = void 0; const NoChannelTrailingSlash = () => { return { Channel(_channel, { report, key, location }) { if (key.endsWith('/') && key !== '/') { report({ message: `\`${key}\` should not have a trailing slash.`, location: location.key(), }); } }, }; }; exports.NoChannelTrailingSlash = NoChannelTrailingSlash;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件