You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Duplicate of #49256, #122 (from 2014!) and probably many others. Long story short: not going to happen because irredeemably unsafe and irreparably broken. Read through the linked issues for more details and discussion.
What is the problem this feature will solve?
Prevents other processes from opening a file or device if they request delete, read, or write access.
https://stackoverflow.com/questions/66728960/how-to-open-a-file-with-exclusive-file-access-in-node
windows: https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea
also in unix: https://man7.org/linux/man-pages/man2/flock.2.html
so it should be consider as a well-supported API, yet node (native api) doesn't implemented.
What is the feature you are proposing to solve the problem?
add a api like
fd.lock()
orfs.lock(fd)
What alternatives have you considered?
outdated package like https://github.com/baudehlo/node-fs-ext
The text was updated successfully, but these errors were encountered: