UNPKG

ipull

Version:

The only file downloader you'll ever need. For node.js and the browser, CLI and library for fast and reliable file downloads.

12 lines (11 loc) 567 B
import BaseDownloadEngineFetchStream, { DownloadInfoResponse, FetchSubState, WriteCallback } from "./base-download-engine-fetch-stream.js"; export default class DownloadEngineFetchStreamLocalFile extends BaseDownloadEngineFetchStream { transferAction: string; private _fd; private _fsPath; withSubState(state: FetchSubState): this; private _ensureFileOpen; protected fetchWithoutRetryChunks(callback: WriteCallback): Promise<void>; protected fetchDownloadInfoWithoutRetry(path: string): Promise<DownloadInfoResponse>; close(): void; }