[IronPython] os.access

Sanghyeon Seo sanxiyn at gmail.com
Sat Jan 27 15:20:11 CET 2007


It would be nice to have a basic implementation of os.access in IronPython.

As it is available for all of Windows/Unix/Macintosh in CPython,
existing Python codes aiming to be portable don't shy away from using
it. Especially, os.access(path, os.F_OK) seems to be widespread for
checking existence of path, although I don't see why. Isn't it same as
os.path.exists(path)? If you know how they differ, please enlighten
me.

Anyway, here are some usages of os.access in the wild:
http://www.google.com/codesearch?q=os.access+F_OK

CPython simply calls access() function of CRT to implement it on Windows:
http://msdn2.microsoft.com/en-us/library/1w06ktdy(VS.80).aspx

-- 
Seo Sanghyeon



More information about the Ironpython-users mailing list