Getting folder infrormation | developer.brewmp.com Getting folder infrormation | developer.brewmp.com

Developer

Getting folder infrormation

Forums:

Hi,

In my application I need to download images from server and no. of images may vary.
All I have is link of the folder containing images.So is there any way to extract the information about the no of files inside a folder?

Any help/hint is highly appreciated.

-Priyank

You need to enumerate all the files in that folder using IFileMgr & count it.

You need to enumerate all the files in that folder using IFileMgr & count it.

is your folder remote or local? if its remote then your server needs to provide that information

is your folder remote or local? if its remote then your server needs to provide that information

yes actually, the folder is at server.
sorry but I didn't get the literal meaning of
Quote:your server needs to provide that information
by the way I dont want to put some text file having information of no of files and their names. Is there some way of knowing the same?
Since neither the file count nor their names are fixed.

yes actually, the folder is at server.
sorry but I didn't get the literal meaning of
Quote:your server needs to provide that information
by the way I dont want to put some text file having information of no of files and their names. Is there some way of knowing the same?
Since neither the file count nor their names are fixed.

Your statements are bit confusing in first question you imply that the images are in mobile, since you are downloading: "In my application I need to download images from server and no. of images may vary.", in this case you can enumerate and easily get the file count.

Your statements are bit confusing in first question you imply that the images are in mobile, since you are downloading: "In my application I need to download images from server and no. of images may vary.", in this case you can enumerate and easily get the file count.