chore: cleanup empty csv directory after kuzu load

This commit is contained in:
abhigyanpatwari 2026-02-04 01:40:59 +05:30
parent 778ff10707
commit 1ed9d286ae

View file

@ -126,6 +126,13 @@ export const loadGraphToKuzu = async (
// ignore
}
}
// Remove empty csv directory
try {
await fs.rmdir(csvDir);
} catch {
// ignore if not empty or other error
}
return { success: true, insertedRels, skippedRels };
};