[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 PReceived on Monday, 29 April 2002 08:39:28 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:19:59 GMT