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

After using node-tar to read a specific file in the tar package, the file cannot be deleted by fs.unlinkSync immediately. #404

Closed
leoFitz1024 opened this issue Mar 24, 2024 · 1 comment

Comments

@leoFitz1024
Copy link

Node.js version: v20.3.1
node-tar: ^6.2.1

Specific reproducible test code repository: https://github.com/leoFitz1024/test-node-tar

I encountered a strange phenomenon. When the tar file is large, after using node-tar to read a specific file in the tar package, it cannot be immediately deleted using fs.unlinkSync. It is only truly deleted after the program exits, while this issue does not occur in smaller tar files.

@leoFitz1024
Copy link
Author

image
It might be an issue here,This can solve it

@isaacs isaacs closed this as completed in 314ec7e Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant