Skip to content
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

ReadListener.doAfterAllAnalysed 时文件未释放 #155

Open
VirensCn opened this issue Dec 23, 2024 · 2 comments
Open

ReadListener.doAfterAllAnalysed 时文件未释放 #155

VirensCn opened this issue Dec 23, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@VirensCn
Copy link

上传解析操作中,需要使用到临时文件并异步解析。在解析完成后ReadListener.doAfterAllAnalysed 回调中尝试删除临时文件会出现文件占用。

@psxjoy
Copy link
Collaborator

psxjoy commented Dec 23, 2024

Unable to reproduce the issue. Please provide a minimal reproducible example.

无法复现,最好提供一个最小可复现demo

@psxjoy psxjoy added the help wanted Extra attention is needed label Dec 23, 2024
@VirensCn
Copy link
Author

eeee.zip
这是个最小demo,你可以测试下

doAfterAllAnalysed回调中进行文件删除会出现java.nio.file.FileSystemException: C:\Users\virens\AppData\Local\Temp\hutool8760927215952302151.tmp: 另一个程序正在使用此文件,进程无法访问。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants