Message71294
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 ".." |
|
Date |
User |
Action |
Args |
2008-08-17 22:19:39 | pitrou | set | recipients:
+ pitrou, loewis, rossburton |
2008-08-17 22:19:39 | pitrou | set | messageid: <1219011579.12.0.00845112030712.issue2466@psf.upfronthosting.co.za> |
2008-08-17 22:19:38 | pitrou | link | issue2466 messages |
2008-08-17 22:19:37 | pitrou | create | |
|