A path's first folder, or '' for a file at the project root.
(filePath: string)
| 1962 | */ |
| 1963 | /** A path's first folder, or '' for a file at the project root. */ |
| 1964 | function topLevelFolder(filePath: string): string { |
| 1965 | const slash = filePath.indexOf('/'); |
| 1966 | return slash > 0 ? filePath.slice(0, slash) : ''; |
| 1967 | } |
| 1968 | |
| 1969 | /** |
| 1970 | * The order in which codegraph_node's multi-definition answer fills its |
no outgoing calls
no test coverage detected