- From: Thomas B. Passin <tpassin@comcast.net>
- Date: Mon, 29 Apr 2002 08:44:59 -0400
- To: RDF Interest group <www-rdf-interest@w3.org>
[Graham Klyne] > I've also started porting this code to Jython (with a view to front-ending > a Jena RDB Model). The N3 parser works OK, but I'm having some troubles > with some of the file support routines -- os.access() not supported. Are > there any other easy ways you'd recommend, using Python to (a) check that a > file exists and is readable, and (b) that a directory exists and is writeable? > access() is listed as unix only for C-Python, but os.stat() should be available. Also, os.path.isfile() and os.path.isdir() ought to be present, though they wouldn't test for writability. Cheers, Tom P
Received on Monday, 29 April 2002 08:39:28 UTC