文件操作 - GotDownloader.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /node_modules/@electron/get/dist/esm/GotDownloader.d.ts
编辑文件内容
import * as got from 'got'; import { Downloader } from './Downloader'; /** * See [`got#options`](https://github.com/sindresorhus/got#options) for possible keys/values. */ export declare type GotDownloaderOptions = got.GotOptions<string | null> & { /** * if defined, triggers every time `got`'s `downloadProgress` event callback is triggered. */ getProgressCallback?: (progress: got.Progress) => Promise<void>; /** * if `true`, disables the console progress bar (setting the `ELECTRON_GET_NO_PROGRESS` * environment variable to a non-empty value also does this). */ quiet?: boolean; }; export declare class GotDownloader implements Downloader<GotDownloaderOptions> { download(url: string, targetFilePath: string, options?: GotDownloaderOptions): Promise<void>; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件