Ross Burton <[EMAIL PROTECTED]> added the comment:
Aha. The contents of the mount point are only accessible by root:
$ stat /media/windows/..
stat: cannot stat `/media/windows/..': Permission denied
This falls into the except block, so false is returned.
If ismount() used os.path.dirname() in
Martin v. Löwis <[EMAIL PROTECTED]> added the comment:
I cannot reproduce that; it works fine for me, with the same Python
version, on Linux 2.6.22.
Can you please debug through ismount, and report which of the calls fail?
The code of ismount reads
def ismount(path):
"""Test whether a path
New submission from Ross Burton <[EMAIL PROTECTED]>:
I'm not sure why this is, but ismount doesn't always work for me. It
appears to fail on NTFS mounts.
$ mount
...
/dev/sda1 on /media/windows type ntfs (ro,noexec,nosuid,nodev,user=ross)
redbeard.local:/home on /media/home type nfs
(rw,user=ro