use Fcntl ':flock'; if ( flock( $filename, LOCK_EX | LOCK_NB ) ) { # File is unlocked flock( $filename, LOCK_UN ); } else { # File is locked. }
In reply to Re: Detecting locked files in Windows
by dragonchild
in thread Detecting locked files in Windows
by moggs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |