MCPcopy Index your code
hub / github.com/codedogQBY/ReadAny / putFile

Method putFile

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

Upload a local file directly 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

40
41 /** Upload a local file directly when the platform/backend supports native file transfer. */
42 putFile?(
43 path: string,
44 localFilePath: string,
45 onProgress?: (loaded: number, total: number) => void,

Callers 2

uploadFileToRemoteFunction · 0.65
putFileMethod · 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