[issue15093] ntpath.isdir returns False for directory symlinks

Atsuo Ishimoto report at bugs.python.org
Thu Jul 26 16:58:33 CEST 2012


Atsuo Ishimoto <ishimoto at gembook.org> added the comment:

On Windows, 'target_is_directory' is required for directory symlink.

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

Should we automatically specify target_is_directory if target exists and the target is a directory?

----------
nosy: +ishimoto

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


More information about the Python-bugs-list mailing list