PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Symbian Folder Access?

Hi,

In symbian File Manager, there are five folder exists -
"Picture, Music, Video, Document, Other"

If I want to export files to these folders, for user access by Symbian's File Manager, such as phone's memory card drive(D:\) or the application drive?(C:\) How to do this?

Thanks
Hi Lamsuet,

You can access these folder at c:\data. Here are some examples:
c:\data\My Videos
c:\data\Images
c:\data\Games
c:\data\Others

When writing to these folders use absolute paths when creating new files through ClassEFile.
Hi edge,

I tried call OpenFolder of current path, I can read files and folders in it. (But the application path cannot access by Symbian File Manager)

When I set the path to "C", "C:", "C:\\" also can't list the contents in it.
what I want to do is let the user select the path and save the file only.(the absolute path cannot access, and I am not sure all device's have the same absolute path...)

Is it any CAPABILITY need to set? Could you please give me some help on it?

Thanks
Hi Lamsuet,

If you need to have full access to the C: drive, you need the AllFiles capability unfortunately. Because this is a manufacturer approved capability, you will need to sign the application multiple times when targetting multiple devices (each manufacturer needs to approve your application using this capability).

The best way to handle this is to use the Symbian API to get the folder names. Here is an example to get the images path:

Code:

#include <PathInfo.h>

TBuf<256> imagespath;
char path[MAX_EFILESTR];

imagespath.Copy(PathInfo::PhoneMemoryRootPath());
imagespath.Append(PathInfo::ImagesPath());

ClassEStd::StrCpy(path, imagespath.PtrZ());


When using a memory card, you can get the path by using the MemoryCardRootPath function instead of PhoneMemoryRootPath.

More information is available here:
http://wiki.forum.nokia.com/index.php/G ... s_Rootpath