Delete working directory error
Hello, I have encountered a problem I have called NodeRuntime.close(), but the path corresponding to the working directory still cannot be deleted
I think you'd better chdir to somewhere else before doing so.
const path = require('path');
const { chdir, cwd } = require('process');
const rootDir = cwd();
try {
...
} finally {
chdir(path.dirname(rootDir));
}
@caoccao like this ?
Something like that.
@caoccao it seems that the V8FileExecutor does not release the js file after NodeRuntime is closed, so the file is always occupied by the java process. any suggestions ?
It's quite unusual to delete the script. Please use the other executors instead.
ok, i'll try V8StringExecutor instead