[Ironpython-users] IronPython, Daily Digest 7/26/2011

no_reply at codeplex.com no_reply at codeplex.com
Wed Jul 27 14:16:36 CEST 2011


Hi ironpython,

Here's your Daily Digest of new issues for project "IronPython".

In today's digest:ISSUES

1. [New issue] os.access(..., os.F_OK) is incorrect for directories

----------------------------------------------

ISSUES

1. [New issue] os.access(..., os.F_OK) is incorrect for directories
http://ironpython.codeplex.com/workitem/31079
User jdhardy has proposed the issue:

"c.f. http://stackoverflow.com/questions/6823785/os-access-returning-useless-value-for-mode-os-f-ok-in-ironpython/

When called on an existing directory, os.access (..., os.F_OK) succeeds on CPython but fails on IronPython. IronPython treats F_OK as "does this file exist", and then eventually calls File.Exists, which fails for directories.

It should be enough to change (in nt.access):

return context.LanguageContext.DomainManager.Platform.FileExists(path);

into 

return context.LanguageContext.DomainManager.Platform.FileExists(path) || context.LanguageContext.DomainManager.Platform.DirectoryExists(path);"
----------------------------------------------



----------------------------------------------
You are receiving this email because you subscribed to notifications on CodePlex.

To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20110727/f0460b07/attachment.html>


More information about the Ironpython-users mailing list