How to query for a specific file using Android SDK and get FileInfo?

Hi,

I’ve read this article regarding Directory Listing. It seems to provide details of files in a path. However, I would like to query for a single file only instead of listing files in a directory and iterating through the files. Is there anyway to do this?

Regards,
Allen

Hi Allen,

In case you need just one file in response, set the pagesize parameter to 1.

Hi Sergey,

Thanks.

I also noticed that the pattern parameter can be used to query the filename. This is helpful.

Best regards,
Allen