UNPKG

@dpkit/file

Version:

Fast TypeScript data management framework built on top of the Data Package standard and Polars DataFrames

11 lines (9 loc) 313 B
import { loadFileStream } from "../stream/load.ts" import { saveFileStream } from "../stream/save.ts" export async function copyFile(options: { sourcePath: string targetPath: string }) { const stream = await loadFileStream(options.sourcePath) await saveFileStream(stream, { path: options.targetPath }) }