You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2015-03-29.18:45:10.431>labels= ['type-bug', 'tests', 'OS-windows']
title='Symlink to directory on Windows 8'updated_at=<Date2018-02-26.20:20:15.918>user='https://github.com/serhiy-storchaka'
This behavior is not specific to just Windows 8. Symlinks to directories are treated as directories on Windows, in particular, they should be removed with RemoveDirectory, not DeleteFile.
Activity
serhiy-storchaka commentedon Mar 29, 2015
Looks as a symlink on Windows 8 can has the FILE_ATTRIBUTE_DIRECTORY flag.
http://buildbot.python.org/all/builders/AMD64%20Windows8%203.4/builds/348/steps/test/logs/stdio
Create broken link:
What return
os.path.isdir('broken_link')?pfmoore commentedon Mar 29, 2015
It returns True.
serhiy-storchaka commentedon Mar 29, 2015
Then tests should be adapted for Windows 8.
python-dev commentedon Mar 8, 2016
New changeset 19a3e0e664af by Serhiy Storchaka in branch '3.4':
Issues bpo-23808, bpo-25911: Trying to fix walk tests on Windows.
https://hg.python.org/cpython/rev/19a3e0e664af
New changeset f9e22717722d by Serhiy Storchaka in branch '3.5':
Issues bpo-23808, bpo-25911: Trying to fix walk tests on Windows.
https://hg.python.org/cpython/rev/f9e22717722d
New changeset da020e408c7f by Serhiy Storchaka in branch 'default':
Issues bpo-23808, bpo-25911: Trying to fix walk tests on Windows.
https://hg.python.org/cpython/rev/da020e408c7f
izbyshev commentedon Feb 26, 2018
This behavior is not specific to just Windows 8. Symlinks to directories are treated as directories on Windows, in particular, they should be removed with RemoveDirectory, not DeleteFile.
Is there any reason this issue is still open?
serhiy-storchaka commentedon Aug 5, 2026
Cannot be reproduced with current code on Windows 11. Windows 8 is a far past.