ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> Jython-users
Jython-users
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved