Message108225
| Author |
Oren_Held |
| Recipients |
Oren_Held |
| Date |
2010年06月20日.08:49:08 |
| SpamBayes Score |
0.055645347 |
| Marked as misclassified |
No |
| Message-id |
<1277023751.91.0.438330382261.issue9035@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
On unices, ismount checks whether the given path is a mount point.
On windows, it only checks whether it's a drive letter.
Long story short, Python simply returns False when doing ismount(r"c:\mount1"), while c:\mount1 is a real mount point.
This is relevant for all modern windows versions.
--
I'm using win32file.GetVolumePathName() for overcoming this, but I'm not sure if the os python package should be importing win32file, maybe there is a better way to check whether a path is a mount point.. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年06月20日 08:49:12 | Oren_Held | set | recipients:
+ Oren_Held |
| 2010年06月20日 08:49:11 | Oren_Held | set | messageid: <1277023751.91.0.438330382261.issue9035@psf.upfronthosting.co.za> |
| 2010年06月20日 08:49:09 | Oren_Held | link | issue9035 messages |
| 2010年06月20日 08:49:08 | Oren_Held | create |
|