(path: string)
| 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(); |
no outgoing calls
no test coverage detected