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

Function makeTempTransferPath

packages/core/src/sync/sync-files.ts:76–85  ·  view source on GitHub ↗
(finalPath: string)

Source from the content-addressed store, hash-verified

74}
75
76async function makeTempTransferPath(finalPath: string): Promise<string> {
77 const adapter = getSyncAdapter();
78 const tempDir = await adapter.getTempDir();
79 await adapter.ensureDir(tempDir);
80 const ext = getExt(finalPath) || "tmp";
81 return adapter.joinPath(
82 tempDir,
83 `readany-transfer-${Date.now()}-${Math.random().toString(36).slice(2)}.${ext}`,
84 );
85}
86
87async function uploadFileToRemote(
88 backend: ISyncBackend,

Callers 1

downloadRemoteFileToPathFunction · 0.85

Calls 6

getSyncAdapterFunction · 0.90
getExtFunction · 0.85
sliceMethod · 0.80
getTempDirMethod · 0.65
ensureDirMethod · 0.65
joinPathMethod · 0.65

Tested by

no test coverage detected