I’d like to do this too. Files have a field defined for time that I think could do this but I don’t know enough C to use it.
The file definition is :
typedef struct
{
u64 length; // file length
time_t mtime; // file modified time
int type; // TYPE_FILE, TYPE_FOLDER, TYPE_PLAYLIST, TYPE_SEARCH
char filename[MAXPATHLEN + 1]; // full filename
char displayname[MAXJOLIET + 1]; // name for browser display
char image[MAXJOLIET + 1];
int icon; // icon to display
} BROWSERENTRY;
and the browser entries are loaded with:
snprintf(browserList[browser.numEntries+i].filename, MAXJOLIET, “%s”, filename);
browserList[browser.numEntries+i].length = filestat.st_size;
browserList[browser.numEntries+i].mtime = filestat.st_mtime;
which I assumed indicated that filestat.st_mtime was an integer, but when I try and use it the error message says that bit is type_t so I do not know how to use that value. Searching code and the web have given me no leads.
Can anyone help?