Access to fs:/motorola folder | developer.brewmp.com Access to fs:/motorola folder | developer.brewmp.com

Developer

Access to fs:/motorola folder

Forums:

Hi everybody

I try to list all file in "fs:/motorola/shared/picture/" folder by this code

IFileMgr* fileMgn = NULL;

// Create Filemanager instance ISHELL_CreateInstance(pMe->a.m_pIShell,AEECLSID_FILEMGR,(void**)&fileMgn);

// Delete all items in menu
IMENUCTL_DeleteAll(pMe->pIMenuCtl_ListFile);

// function initializes the IFileMgr Interface object
// pszImagePath = "fs:/motorola/shared/picture/"
IFILEMGR_EnumInit(fileMgn, pszImagePath, FALSE);

// Add all file to Menu Control pMe->pIMenuCtl_ListFile
while(IFILEMGR_EnumNext(fileMgn, &info))
{
AECHAR wstr[100];

char* pfilename = info.szName;
char * temp;
while(TRUE)
{
temp = STRCHR(pfilename, '/');
if (NULL == temp)
{
break;
}
else
{
pfilename = &temp[1];
}
}

STRTOWSTR(pfilename, wstr, sizeof(wstr));

IMENUCTL_AddItem(pMe->pIMenuCtl_ListFile,NULL,0,itemId,wstr,0);
itemId++;

I have run this code and he result is:
***Screen***

testcard.txt

***********

The problem is:
1. Actually, "fs:/motorola/shared/picture/" folder contain many file
2. testcard.txt is created by my own other application
-> It only has ability to list file is create by my application

Why i cannot list another files?