moxystudio/node-proper-lockfile

Possibility to pass the lock to another process

julien-f opened this issue · 0 comments

My use case: I want to acquire a lock on a directory and, if successful, run a new process which will do some work in this directory and release the lock at the end.

Is unlock(path) the way to achieve this or is the lock linked to the current process?