adafruit/Adafruit_CircuitPython_BLE_File_Transfer

Add file modification time.

Closed this issue · 1 comments

Add file modification time.

This is a bit tricky because FATFS stores at 2 second resolution after 1980. Ideally this API would be file system agnostic but we'd need a way to convey the modification time resolution since it can vary.

Either we can return the modified time after a write or rely on a following listdir to get it. We could incorporate this into a broader file system info command that could provide the resolution available in nanoseconds.

I think the ideal would be nanoseconds after Jan 1, 1970. This is what MicroPython uses for littlefs and we may switch to littlefs for BLE-only boards.