A path's first folder, or '' for a file at the project root.
(filePath: string)
| 1926 | */ |
| 1927 | /** A path's first folder, or '' for a file at the project root. */ |
| 1928 | function topLevelFolder(filePath: string): string { |
| 1929 | const slash = filePath.indexOf('/'); |
| 1930 | return slash > 0 ? filePath.slice(0, slash) : ''; |
| 1931 | } |
| 1932 | |
| 1933 | /** |
| 1934 | * The order in which codegraph_node's multi-definition answer fills its |
no outgoing calls
no test coverage detected