[issue2466] os.path.ismount doesn't work for NTFS mounts

2008-03-23 Thread Ross Burton
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

[issue2466] os.path.ismount doesn't work for NTFS mounts

2008-03-23 Thread Martin v. Löwis
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

[issue2466] os.path.ismount doesn't work for NTFS mounts

2008-03-23 Thread Ross Burton
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