(top: string)
| 1215 | // case (e.g. `Inbox/…`). Comparing case-sensitively dropped those assets to |
| 1216 | // `null`, so a capitalized `Inbox/` showed its notes but hid its images/PDFs. (#186) |
| 1217 | function systemFolderForTopSegment(top: string): NoteFolder | null { |
| 1218 | const lower = top.toLowerCase() |
| 1219 | return SYSTEM_FOLDERS.has(lower as NoteFolder) ? (lower as NoteFolder) : null |
| 1220 | } |
| 1221 | |
| 1222 | export function folderForVaultRelativePath( |
| 1223 | relPath: string, |
no outgoing calls
no test coverage detected