(file: TFile)
| 276 | } |
| 277 | |
| 278 | function parentLabel(file: TFile): string { |
| 279 | const parent = file.parent?.path; |
| 280 | if (parent && parent !== "/") return parent; |
| 281 | if (file.path.includes("/")) return file.path.slice(0, file.path.lastIndexOf("/")); |
| 282 | return "vault root"; |
| 283 | } |
| 284 | |
| 285 | function basenameFor(file: TFile): string { |
| 286 | if (file.basename) return file.basename; |
no outgoing calls
no test coverage detected