feat: enhance folder indexing with metadata management and improve folder structure handling in UI components

This commit is contained in:
Anish Sarkar 2026-04-08 16:48:40 +05:30
parent 60eb1e4060
commit ae98f64760
6 changed files with 35 additions and 3 deletions

View file

@ -66,7 +66,7 @@ export function FolderWatchDialog({
const folderPath = await api.selectFolder();
if (!folderPath) return;
const folderName = folderPath.split("/").pop() || folderPath.split("\\").pop() || folderPath;
const folderName = folderPath.split(/[/\\]/).pop() || folderPath;
setSelectedFolder({ path: folderPath, name: folderName });
}, []);