mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-11-12 08:41:34 +00:00
chore: cleanup empty csv directory after kuzu load
This commit is contained in:
parent
778ff10707
commit
1ed9d286ae
1 changed files with 7 additions and 0 deletions
|
|
@ -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 };
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue