How to find out if another process is using a file

Tom Wright tew24 at spam.ac.uk
Fri Jan 19 06:19:16 EST 2007


Jean-Paul Calderone wrote:
> A better solution is to name or place files which are begin written in a
> which is recognizable and only rename or move them to their final location
> when they have been completely written.
> 
> For example, name files ".new" as they are being written.  When they are
> fully written, drop the ".new" suffix.  On the reader side, ignore any
> file with a name ending in ".new".

Yes, that would work very neatly but I don't have any control over the
writing process.  I think the modification time route might be the best
option, but thanks to all for their replies.

-- 
I'm at CAMbridge, not SPAMbridge



More information about the Python-list mailing list