[issue9035] os.path.ismount on windows doesn't support windows mount points

Tim Golden report at bugs.python.org
Tue Jun 22 12:56:14 CEST 2010

Tim Golden <mail at timgolden.me.uk> added the comment:

I think we're saying the same thing :)

The simplest thing to do here is to create a win_ismount function
in posixmodule.c which does the attributes / reparse tag dance and
returns True/False and use that wherever it's needed to support this
concept under Windows. The current solution is correct for a subset
of cases. Arguably a bug, although I doubt I'd get that past the
release manager!

The wider issue of exposing GetFileAttributesW, eg under one of the
unused stat fields, should be explored elsewhere.

On 22/06/2010 11:46, Senthil Kumaran wrote:
> Senthil Kumaran<orsenthil at gmail.com>  added the comment:
> I see that ismount like function on windows is provide by the various
> Win32 extensions.
> If Windows supported is added to ismount function itself, then it might be
> a good idea to have attributes or list_attributes function as well.
> But for posix, how will it be different from details provided by stat?
> Would not it add redundancy?
> Or would it be better to provide file attributes as part of stat
> itself (if some are missing in Windows).
> ----------
> nosy: +orsenthil
> _______________________________________
> Python tracker<report at bugs.python.org>
> <http://bugs.python.org/issue9035>
> _______________________________________
> _______________________________________________
> Python-bugs-list mailing list
> Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/mail%40timgolden.me.uk


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list