Re: Avoid changing/moving file that's currently being written.

Chris Suter <[email protected]> Wed, 28 Apr 2010 21:53:21 +1000
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
Hi Fabian,

On Wed, Apr 28, 2010 at 9:42 PM, Fabian Schuiki
<[email protected]> wrote:
> There seems to be a file attribute, can't remember the exact letters but it's something like NSFileReferenceCount. Anyone familiar with that?

I've never heard of it but I suspect it's the hard link count, which
isn't what you want. As I said, I don't think there's an easy way of
finding out whether a file is in use. I searched the Kernel code
pretty thoroughly and ended up writing a Kernel Extension.

Regards,

Chris