(path: string)
| 35 | }); |
| 36 | |
| 37 | const findNodeByPath = (path: string): FileNode | undefined => { |
| 38 | for (const node of store.values()) { |
| 39 | if (node.path === path) { |
| 40 | return node; |
| 41 | } |
| 42 | } |
| 43 | return undefined; |
| 44 | }; |
| 45 | |
| 46 | const listFiles = async (path = '/'): Promise<FileNode[]> => { |
| 47 | const normalizedPath = normalizePath(path); |
no outgoing calls
no test coverage detected