文件操作 - http.ts
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/atom/resources/app/apm/node_modules/uri-js/src/schemes/http.ts
编辑文件内容
import { URISchemeHandler, URIComponents, URIOptions } from "../uri"; const handler:URISchemeHandler = { scheme : "http", domainHost : true, parse : function (components:URIComponents, options:URIOptions):URIComponents { //report missing host if (!components.host) { components.error = components.error || "HTTP URIs must have a host."; } return components; }, serialize : function (components:URIComponents, options:URIOptions):URIComponents { //normalize the default port if (components.port === (String(components.scheme).toLowerCase() !== "https" ? 80 : 443) || components.port === "") { components.port = undefined; } //normalize the empty path if (!components.path) { components.path = "/"; } //NOTE: We do not parse query strings for HTTP URIs //as WWW Form Url Encoded query strings are part of the HTML4+ spec, //and not the HTTP spec. return components; } }; export default handler;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件