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
{{ message }}
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
On Windows, when a file is locked by another process, you can still unlink() this file from another node process and the operation will not fail. The reason has been explained in good detail in #7164.
However, I would expect that I can rmdir() the parent folder of this locked file in the same way I can unlink() the file. When I try to rmdir() the folder, I get a EPERM - directory is not empty error.
I think the unlink() should fail in the first place if the file is used by another process or I should be able to rmdir() the parent folder. As a user that was able to unlink() the file, I would not expect the rmdir() to fail.
The text was updated successfully, but these errors were encountered:
On Windows, when a file is locked by another process, you can still unlink() this file from another node process and the operation will not fail. The reason has been explained in good detail in #7164.
However, I would expect that I can rmdir() the parent folder of this locked file in the same way I can unlink() the file. When I try to rmdir() the folder, I get a EPERM - directory is not empty error.
I think the unlink() should fail in the first place if the file is used by another process or I should be able to rmdir() the parent folder. As a user that was able to unlink() the file, I would not expect the rmdir() to fail.
The text was updated successfully, but these errors were encountered: