A path's first folder, or '' for a file at the project root.
(filePath: string)
| 2079 | */ |
| 2080 | /** A path's first folder, or '' for a file at the project root. */ |
| 2081 | function topLevelFolder(filePath: string): string { |
| 2082 | const slash = filePath.indexOf('/'); |
| 2083 | return slash > 0 ? filePath.slice(0, slash) : ''; |
| 2084 | } |
| 2085 | |
| 2086 | /** |
| 2087 | * The order in which codegraph_node's multi-definition answer fills its |
no outgoing calls
no test coverage detected