Simple question with an unusually elusive answer:
While using zephyrs File System service (Docs) is there any way to check if/when a user has modified a file?
===== Environment =====
nRF Connect SDK v2.5.0 (though not opposed to upgrading to one of the 2.6.X releases if helpful)
Designing for nRF52840 (Prototyping on nRF52840DK), Development on Xiao BLE Sense
===== Overview =====
I am using the USB Mass Storage sample app configured for FATfs to read data out of a 16KB json. Currently I can read and process data but would like to update by rereading and reprocessing data when the json is updated by the user.
Is there anywhere I could find documentation for setting up a callback function on modification or update/polling of the modification timestamp? If possible, I would like to avoid setting up a separate thread to continuously reread the file's contents.
What is the best way forward?