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
{{ message }}
Repository navigation
Results from os.path.islink and os.stat S_ISLNK do not match #48803
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=<Date2008-12-05.22:14:12.581>created_at=<Date2008-12-05.22:12:26.887>labels= ['type-bug', 'invalid']
title='Results from os.path.islink and os.stat S_ISLNK do not match'updated_at=<Date2008-12-05.22:14:12.567>user='https://bugs.python.org/npatters'
Activity
npatters commentedon Dec 5, 2008
See attached file, os.path.islink correctly identifies symlinks as
symlinks, but S_ISLNK is not reporting them as such.
tiran commentedon Dec 5, 2008
The behavior is correct. You want os.lstat, not os.stat.
http://docs.python.org/library/os.html#os.lstat