UNPKG

netstorage

Version:

A TypeScript API and CLI for the Akamai NetStorage REST interface

15 lines (14 loc) 661 B
import { type NetStorageClientConfig, type UploadParams } from '../../index'; /** * Uploads a file if it does not already exist on NetStorage. * * Uses `stat` to check for the remote file and skips upload if the file exists. * * @param config NetStorage client config * @param params Upload parameters: * - fromLocal Local file path to upload * - toRemote Remote NetStorage destination path * - options Optional upload settings * @returns Parsed NetStorage upload response */ export declare function uploadMissing(config: NetStorageClientConfig, { fromLocal, toRemote, options }: UploadParams): Promise<import("../../index").NetStorageUpload>;