Function desfire::fs::which_files_exist

Function Documentation

result<std::vector<file_id>> desfire::fs::which_files_exist(tag &tag, std::vector<file_id> fids)

List all the files in the current app, and returns those among fids that exist. This method uses tag::get_file_ids to retrieve the list of files, therefore the app must allow directory access, either with the currently authenticated key or by having key_rights::dir_access_without_auth set to true. The caller is responsible for selecting the app and authenticating. No change in app and authentication is performed by this method.

Parameters:
  • tag – Tag on which to operate.

  • fids – Vector of file IDs to search for.

Returns:

A sorted list of items of fids that exist (possibly empty), or any error returned by tag::get_file_ids.