Page 1 of 1
Changing file modification date
Posted: Tue Sep 10, 2024 6:35 pm
by Gearmo3DS
I could not find a way to modify the file modification time-stamp of files in libctru for the 3DS.
I assume it is not implemented or possible but wanted to double check here just in case.
My use-case is file-synchronization between a PC or other devices via network/web file transfer.
When a 3DS app transfers an old external file to the SD-card then the code logic would incorrectly detect the file being newer than the original one on the PC (or source location).
Re: Changing file modification date
Posted: Mon Oct 28, 2024 5:19 pm
by WinterMute
From what we can determine the only way you can update the timestamp is by actually writing to the file and even then you can only change the timestamp to "now". We haven't found a way to set timestamps to arbitrary values, sorry.
Re: Changing file modification date
Posted: Mon Oct 28, 2024 5:51 pm
by Gearmo3DS
No worries. I plan to "outsource" the file dates as meta data to work around it.