Function desfire::fs::delete_file_if_exists

Function Documentation

result desfire::fs::delete_file_if_exists(tag &tag, file_id fid)

Deletes a file in the current app if existing. This uses does_file_exist to check for existence before calling tag::delete_file, therefore the app must allow a call to tag::get_file_ids. 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.

  • fid – File to delete.

Returns:

Either mlab::result_success or any of the error codes returned by tag::get_file_ids or tag::delete_file.