Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Another problem of using os.path.dirname is that for /A/B, it will return /A, and if /A is itself a symlink to a mount point itself, /A and /A/B will have different st_dev values... which will be wrongly interpreted as meaning that /A/B is a mount point.
So here is a possible course of action for ismount: 1- first test if the arg is a symlink and if so, return False (as it already does today) 2- then use os.path.realname(os.path.dirname(arg)) instead of joining with ".." _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2466> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com