You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
File last updated does not alway show the correct date and time #322
bugSomething is not workingdevice/software specificIssues concerning devices with some specific hardware/softwarenicheOnly relevant to a very small amount of people
Are those files being synchronized using something?
Are files outside the Sync folder also affected?
They are being sync'd but that's not the propbem. I see the issue when updating (appending usually) from my own Java program. The code to update a file looks like this:
FileOutputStream outputStream = new FileOutputStream(new File(Bank.getPath(), mFile+".txt"), true); // true means append
outputStream.write(line.getBytes());
outputStream.close();
I find it curious that other file browser show the expected timestamp. Thanks!
I could reproduce this on an emulator (Android 17). After appending a line to a file from adb shell (echo ... >> file), the file's mtime changed to 16:14 but MediaStore kept the old date_modified (16:11), and the folder list showed 04:11 PM.
The folder list takes the date from MediaStore (getFolderLastModifieds() in ItemsFragment.getRegularItemsOf()) and only falls back to file.lastModified() when MediaStore has no entry. Search results already pass an empty map, so they always use the file's own date.
I have a fix that does the same for the folder list: it uses file.lastModified() and drops the MediaStore lookup there. The code already calls isDirectory and length() on each file, so it's one more read of the same file. With it, the same file shows 04:14 PM. Build, detekt and lint pass: main...PedroFlores199:File-Manager:fix/folder-item-last-modified
bugSomething is not workingdevice/software specificIssues concerning devices with some specific hardware/softwarenicheOnly relevant to a very small amount of people
Activity
naveensingh commentedon Nov 20, 2025
salt-and-sauce commentedon Nov 20, 2025
They are being sync'd but that's not the propbem. I see the issue when updating (appending usually) from my own Java program. The code to update a file looks like this:
FileOutputStream outputStream = new FileOutputStream(new File(Bank.getPath(), mFile+".txt"), true); // true means append
outputStream.write(line.getBytes());
outputStream.close();
I find it curious that other file browser show the expected timestamp. Thanks!
naveensingh commentedon Nov 20, 2025
It should work fine if you also update the MediaStore DB after updating the file.
salt-and-sauce commentedon Nov 20, 2025
Ah OK - we can close this issue. Thanks!
naveensingh commentedon Nov 20, 2025
No, that is a workaround. This still needs to be fixed here.
salt-and-sauce commentedon Nov 20, 2025
Cool - thanks for that. I'll watch for an update. Thanks for the quick triage - I really like the app,
PedroFlores199 commentedon Nov 27, 2026
I could reproduce this on an emulator (Android 17). After appending a line to a file from
adb shell(echo ... >> file), the file's mtime changed to 16:14 but MediaStore kept the olddate_modified(16:11), and the folder list showed 04:11 PM.The folder list takes the date from MediaStore (
getFolderLastModifieds()inItemsFragment.getRegularItemsOf()) and only falls back tofile.lastModified()when MediaStore has no entry. Search results already pass an empty map, so they always use the file's own date.I have a fix that does the same for the folder list: it uses
file.lastModified()and drops the MediaStore lookup there. The code already callsisDirectoryandlength()on each file, so it's one more read of the same file. With it, the same file shows 04:14 PM. Build, detekt and lint pass:main...PedroFlores199:File-Manager:fix/folder-item-last-modified
I can open a PR if you'd like it.