@dpkit/file
Version:
Fast TypeScript data management framework built on top of the Data Package standard and Polars DataFrames
11 lines (9 loc) • 320 B
text/typescript
import { readFileStream } from "./stream/read.js"
import { writeFileStream } from "./stream/write.js"
export async function saveFileToDisc(options: {
sourcePath: string
targetPath: string
}) {
const stream = await readFileStream(options.sourcePath)
await writeFileStream(stream, { path: options.targetPath })
}