[Jython-users] os.access() support?
by Graham Klyne other posts by this author
Apr 28 2002 4:57PM messages near this date
[Jython-users] Installer
|
Scratching my itch (was: [Jython-users] os.access() support?)
Looking at .../lib/javaos.py, it seems that the os.access() method is not
currently supported.
Are there any plans, or is there a prototype?
I'm using this method to check file and/or directory names in an
application; e.g.
if not os.access( fnam, os.R_OK ):
raise N3CommandError( "Cannot read file "+fnam )
and
if not os.access( o, os.W_OK ):
raise N3CommandError( "Cannot write directory "+o )
This much, at least, seems to be reasonably operating system independent
and reasonable functionality to include in Jython in support of portable code.
#g
-------------------
Graham Klyne
<GK@[...].org>
_______________________________________________
Jython-users mailing list
Jython-users@[...].net
https://lists.sourceforge.net/lists/listinfo/jython-users
Thread:
Graham Klyne
Graham Klyne
|