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

Method move

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

* Move/rename a file from `fromPath` to `toPath`. * Implementations should create intermediate directories on the destination side. * Should be atomic where the backend supports it; otherwise copy + delete. * Throws if the source does not exist or if the destination already exists.

(fromPath: string, toPath: string)

Source from the content-addressed store, hash-verified

74 * Throws if the source does not exist or if the destination already exists.
75 */
76 move(fromPath: string, toPath: string): Promise<void>;
77
78 /** Get a display name for the backend (for UI) */
79 getDisplayName(): Promise<string>;

Callers 2

migrateBookRemoteStateFunction · 0.65
moveMethod · 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