ActiveState Community

Can I check if a file is in use

Posted by calebsg on 2008-02-06 20:38

Hi,

I am using this code:
if (-w "$dir/zotero.sqlite") {

also tried
if (-r "$dir/zotero.sqlite") {

In both cases it comes back true when in actual fact that sqlite database file is in use. I'm wondering if there is a more accurate way of testing if this file is in use.

Thanks,
Caleb

sang33ta | Thu, 2008-02-21 18:37