MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / getByPath

Method getByPath

daemon/src/service/upload_manager.ts:36–43  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

34 }
35
36 getByPath(path: string): { id: string; writer: FileWriter } | undefined {
37 for (const [id, writer] of this.uploads.entries()) {
38 if (writer.path == path) {
39 return { id, writer };
40 }
41 }
42 return undefined;
43 }
44
45 async clearExpired(): Promise<void> {
46 const now = Date.now();

Callers 2

file_router.tsFile · 0.80
http_router.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected