( note: Pick<NoteMeta, 'folder' | 'path'>, settings: VaultSettings | null | undefined )
| 802 | } |
| 803 | |
| 804 | export function noteFolderSubpath( |
| 805 | note: Pick<NoteMeta, 'folder' | 'path'>, |
| 806 | settings: VaultSettings | null | undefined |
| 807 | ): string { |
| 808 | const within = notePathWithinFolder(note.path, note.folder, settings) |
| 809 | const parts = within.split('/').filter(Boolean) |
| 810 | return parts.length > 1 ? parts.slice(0, -1).join('/') : '' |
| 811 | } |
| 812 | |
| 813 | export function noteBelongsToFolderView( |
| 814 | note: Pick<NoteMeta, 'folder' | 'path'>, |
no test coverage detected