(fullPath: string, content?: string)
| 67 | * "/state.json" → { path: "", name: "state.json" } |
| 68 | */ |
| 69 | const toTextFile = (fullPath: string, content?: string): TextFile => { |
| 70 | const normalized = normalizePath(fullPath); |
| 71 | return { |
| 72 | path: getDirPath(normalized), |
| 73 | name: getFileName(normalized), |
| 74 | ...(content !== undefined ? { content } : {}), |
| 75 | }; |
| 76 | }; |
| 77 | |
| 78 | /** Format timestamp as HH:mm:ss.SSS */ |
| 79 | const ts = () => { |
no test coverage detected