We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d49783c commit d12cf1bCopy full SHA for d12cf1b
index.js
@@ -1,5 +1,6 @@
1
-const chdbNode = require('./build/Release/chdb_node.node');
2
-const { mkdtempSync, rmdirSync } = require('fs');
+const path = require('path');
+const chdbNode = require(path.join(__dirname, 'build', 'Release', 'chdb_node.node'));
3
+const { mkdtempSync, rmSync } = require('fs');
4
const { join } = require('path');
5
const os = require('os');
6
@@ -31,7 +32,7 @@ class Session {
31
32
33
// Cleanup method to delete the temporary directory
34
cleanup() {
- rmdirSync(this.path, { recursive: true });
35
+ rmSync(this.path, { recursive: true }); // Replaced rmdirSync with rmSync
36
}
37
38
0 commit comments