A path's first folder, or '' for a file at the project root.
(filePath: string)
| 1952 | */ |
| 1953 | /** A path's first folder, or '' for a file at the project root. */ |
| 1954 | function topLevelFolder(filePath: string): string { |
| 1955 | const slash = filePath.indexOf('/'); |
| 1956 | return slash > 0 ? filePath.slice(0, slash) : ''; |
| 1957 | } |
| 1958 | |
| 1959 | /** |
| 1960 | * The order in which codegraph_node's multi-definition answer fills its |
no outgoing calls
no test coverage detected