With pyfatfs checked out from the bugfix/dentry_ordering branch as at 96ae6bc, I found that PyFatFS.setinfo(path, {"details": {"modified": value}}) seemed to work despite the "Not yet properly implemented." docstring, but only partly.
While investigating that, I found this, which I think is the root cause of the issue I was seeing:
The most significant bit of the minutes field is lost. https://wiki.osdev.org/FAT says that the minutes field is stored in 6 bits, so the bit mask used is wrong, and this trivial fix seems to help:
With pyfatfs checked out from the bugfix/dentry_ordering branch as at 96ae6bc, I found that
PyFatFS.setinfo(path, {"details": {"modified": value}})
seemed to work despite the "Not yet properly implemented." docstring, but only partly.While investigating that, I found this, which I think is the root cause of the issue I was seeing:
The most significant bit of the minutes field is lost. https://wiki.osdev.org/FAT says that the minutes field is stored in 6 bits, so the bit mask used is wrong, and this trivial fix seems to help: