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.
_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
http://mail.python.org/mailman/listinfo/ironpython-users