-
-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete working directory error #385
Comments
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I have encountered a problem
I have called NodeRuntime.close(), but the path corresponding to the working directory still cannot be deleted
The text was updated successfully, but these errors were encountered: