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.
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.