Skip to content

Commit d12cf1b

Browse files
committed
Fix warning
1 parent d49783c commit d12cf1b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
const chdbNode = require('./build/Release/chdb_node.node');
2-
const { mkdtempSync, rmdirSync } = require('fs');
1+
const path = require('path');
2+
const chdbNode = require(path.join(__dirname, 'build', 'Release', 'chdb_node.node'));
3+
const { mkdtempSync, rmSync } = require('fs');
34
const { join } = require('path');
45
const os = require('os');
56

@@ -31,7 +32,7 @@ class Session {
3132

3233
// Cleanup method to delete the temporary directory
3334
cleanup() {
34-
rmdirSync(this.path, { recursive: true });
35+
rmSync(this.path, { recursive: true }); // Replaced rmdirSync with rmSync
3536
}
3637
}
3738

0 commit comments

Comments
 (0)