From: Jeff M. <jef...@za...> - 2019-09-13 20:31:47
|
Its hard (in an OS independant fashion) to know if a file is _open_, but its a little easier to tell if it is _locked_, which is the same for you likely. (If a job opens a file without locking it, then you couldn't easily detect it.) Without creating your own file locking scheme, or looking into the OS specific flock functions, you could just take a look at.. https://pypi.org/project/filelock/2.0.13/ On Fri, Sep 13, 2019 at 4:26 PM Pete via Jython-users < jyt...@li...> wrote: > I need to append and then close a file. > > I am trying to avoid file write contention issues. > > How can I determine if the file if not closed before opening it for append? > > > Thank you, > > PR > > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |