Message185281
Attempting to use os.path.exists on a Windows drive that is a mobile device mount point with nothing mounted pops up a dialog asking to insert a device. This makes it impossible to search a set of drives for a specific file without the possibility of unnecessary user interaction -- for example looking for the drive that has a specific flash drive inserted.
This behavior is likely related to bug 9035 regarding "os.path.ismount" behavior on Windows.
The more correct behavior (IMO) would be to quietly return exists=False for drives with nothing mounted. In fact, I tried the same operation with Java and Ruby programs, and both simply return false with no popup. |
|
Date |
User |
Action |
Args |
2013-03-26 17:26:44 | bobjalex | set | recipients:
+ bobjalex |
2013-03-26 17:26:44 | bobjalex | set | messageid: <1364318804.06.0.966349277982.issue17551@psf.upfronthosting.co.za> |
2013-03-26 17:26:44 | bobjalex | link | issue17551 messages |
2013-03-26 17:26:43 | bobjalex | create | |
|