$handle = fopen( $this->getLockPath( $path ), 'a+' );
if ( !$handle ) { // lock dir missing?
mkdir( $this->lockDir, 0777, true );
$handle = fopen( $this->getLockPath( $path ), 'a+' ); // try again
}
$handle = fopen( $this->getLockPath( $path ), 'a+' );
if ( !$handle ) { // lock dir missing?
mkdir( $this->lockDir, 0777, true );
$handle = fopen( $this->getLockPath( $path ), 'a+' ); // try again
}