MCPcopy
hub / github.com/codedogQBY/ReadAny / getFileToPath

Method getFileToPath

packages/core/src/sync/sync-backend.ts:49–49  ·  view source on GitHub ↗

Download directly into a local file when the platform/backend supports native file transfer.

(
    path: string,
    localFilePath: string,
    onProgress?: (loaded: number, total: number) => void,
  )

Source from the content-addressed store, hash-verified

47
48 /** Download directly into a local file when the platform/backend supports native file transfer. */
49 getFileToPath?(
50 path: string,
51 localFilePath: string,
52 onProgress?: (loaded: number, total: number) => void,

Callers 2

downloadRemoteFileToPathFunction · 0.65
getFileToPathMethod · 0.65

Implementers 5

WebDavBackendpackages/core/src/sync/webdav-backend.
S3Backendpackages/core/src/sync/s3-backend.ts
LocalFsBackendpackages/core/src/sync/lan-server.ts
LANBackendpackages/core/src/sync/lan-backend.ts
MemoryBackendpackages/core/src/sync/__tests__/simpl

Calls

no outgoing calls

Tested by

no test coverage detected