How to find the Folder size | developer.brewmp.com How to find the Folder size | developer.brewmp.com

Developer

How to find the Folder size

Forums:

Hi all,

We are developing an application which will be running in background and i have to constantly watch a folder to find any new files added to it ,if so our application should be triggered.

So is there any way to find the size of the folder or any changes occurred in the folder.

Use below api for size of folder:
int IFILEMGR_GetFileUseInfo(IFileMgr * pfm, AEEFileUseInfo * pfu);

Use below api for size of folder:
int IFILEMGR_GetFileUseInfo(IFileMgr * pfm, AEEFileUseInfo * pfu);

Hi ash,
I have already tried with the same IFILEMGR_GetFileUseInfo and i could get some constant values for all the folders inside the loop.
uint16 wMaxFiles; \\65535
uint16 wFilesUsed; \\0
uint32 dwMaxSpace; \\4294....
uint32 dwSpaceUsed; \\0
So what are all these values and there is no size in it .I have also used FILEINFO fi.dwsize and it also returns only 0.
Is there any other way??

Hi ash,
I have already tried with the same IFILEMGR_GetFileUseInfo and i could get some constant values for all the folders inside the loop.
uint16 wMaxFiles; \\65535
uint16 wFilesUsed; \\0
uint32 dwMaxSpace; \\4294....
uint32 dwSpaceUsed; \\0
So what are all these values and there is no size in it .I have also used FILEINFO fi.dwsize and it also returns only 0.
Is there any other way??

Are there any files in the folder you are trying to access ?
Also fileinfo is for a particular file not a folder.
I dont' presume there are apis other than ifile ones in brew.

Are there any files in the folder you are trying to access ?
Also fileinfo is for a particular file not a folder.
I dont' presume there are apis other than ifile ones in brew.