Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.
How to get file system drive information using Symbian C++
This article shows how to use RFs::DriveList() to get an array containing a bitmap of attributes for all drives.
The drive list consists of an array of 26 bytes. Array index 0 corresponds to drive A, 1 equals B etc. The array member value is a bitmap of drive attributes, or 0 if there is no such drive. The following code prints each drive in the drive list as a letter, followed by the hex value of the integer indicating the drive's attributes.
TChar driveLetter; TInt driveNumber=EDriveA;
_LIT(KDrive,"%c: %02x ");
console->Printf(KDrive, TUint(driveLetter), drivelist[driveNumber]);