[New-bugs-announce] [issue15093] ntpath.isdir returns False for directory symlinks

Jason R. Coombs report at bugs.python.org
Sun Jun 17 11:28:57 CEST 2012


New submission from Jason R. Coombs <jaraco at jaraco.com>:

On Unix:

python -c "import os; os.mkdir('bar'); os.symlink('bar', 'foo'); print(os.path.isdir('foo'))"
True

On Windows:
python -c "import os; os.mkdir('bar'); os.symlink('bar', 'foo'); print(os.path.isdir('foo'))"
False

Windows should correctly discern the directory-ness of a symlink (especially since in Windows, the symlink itself has a directory-ness).

----------
components: Windows
messages: 163044
nosy: jason.coombs
priority: normal
severity: normal
status: open
title: ntpath.isdir returns False for directory symlinks
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15093>
_______________________________________


More information about the New-bugs-announce mailing list