文件操作 - index.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /node_modules/@electron/get/dist/esm/index.d.ts
编辑文件内容
import { ElectronDownloadRequestOptions, ElectronPlatformArtifactDetailsWithDefaults } from './types'; export { getHostArch } from './utils'; export { initializeProxy } from './proxy'; export * from './types'; /** * Downloads a specific version of Electron and returns an absolute path to a * ZIP file. * * @param version - The version of Electron you want to download */ export declare function download(version: string, options?: ElectronDownloadRequestOptions): Promise<string>; /** * Downloads an artifact from an Electron release and returns an absolute path * to the downloaded file. * * @param artifactDetails - The information required to download the artifact */ export declare function downloadArtifact(_artifactDetails: ElectronPlatformArtifactDetailsWithDefaults): Promise<string>;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件