[Pythonmac-SIG] Referencing drive path names on OS9

Andrew Dufresne drew_dufresne at yahoo.com.au
Wed Jul 7 05:56:37 CEST 2004


My appologies if this is a silly question but I have a question about referencing drive paths on an OS9 version of macpython (2.3.3).
 
I understand that when macpython references folder paths on a drive (be it the root drive, CDROM, removable media, etc.) you need to specify the name of the drive for the absolute path specification.
For example:
      os.listdir('My Disk:Applications')
to list the directory 'Applications' on the system hard disk (in this case, named 'My Disk'). Thats all fine and dandy.
 
But what happens when you have two different disks that happen to have the same name? Lets say I had a CDROM with the name 'My Disk' in the above system. The OS knows the difference between the devices and will generate two icons on the desktop, but python uses the drive name only (I'm guessing). Can python make a distinction between the two when they have a common drive name?
 



---------------------------------
Find local movie times and trailers on Yahoo! Movies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20040707/fff92f49/attachment.htm


More information about the Pythonmac-SIG mailing list