Re: Test if a file is locked by the OS
Brian Candler <[email protected]> Wed, 29 Dec 2004 19:40:51 +0000
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Dec 29, 2004 at 01:36:09PM -0600, Daniel Mynyk wrote: > Is there a way in Ruby to test if a file is locked by the OS? Try to lock it yourself - if you ask for an exclusive lock, and another app has a shared or exclusive lock, it will fail. This isn't mod_ruby related though - maybe ruby-talk would be a better place for generic Ruby questions.