Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

usb removable drives



Hi,

I'm looking for a way to get the OS mount paths for all USB removable drives that are currently plugged into the computer. Right now Im using the NSWorkspace's mountedRemovableMedia method which works except that it also returns paths like DVDs. The only way I really have to differentiate between them at the moment is checking if I have write access to the path.

What I'm looking for is one of the two following things:
1. A way to get the mount paths of all removable USB drives, or
2. Given a path to a mounted drive, determine if it's a USB drive.

Less critical would be a way to be notified that a new drive had been mounted or removed. It's less critical because I can use the NSWorkspaceDidMountNotification (and Unmount) and just rebuild the list.

- Steve

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.