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
you could try and flock it http://perldoc.perl.org/functions/flock.html