that *is the code that fetches the files' listing;
but you'll need more than "one of code"" to filter by mimetype
because the mimetype is stored much further away than type, subtype are -
as metadata and that api call above is not hitting the metadata at all.
and so have to do the files fetching in some other manner,
unless the file upload code is changed to store the mimetype say as subtype.
No friends yet.