I'm using the flock() method to get an advisory lock on a directory, and prevent another process from accessing the same directory at the same time. Because flock()
operates on a file handle, I have to open a handle on the directory first:
fopen('.', 'r');
However, this does not work on Windows:
fopen(.): failed to open stream: Permission denied
Is there a way to do the same on Windows, or is it a limitation of this platform?