Home:ALL Converter>Find files not accessed in last x days on android

Find files not accessed in last x days on android

Ask Time:2017-02-06T09:22:48         Author:atuljangra

Json Formatter

I've an android app that writes files to the disk frequently. I want to write a cleanup module that would find files that are not accessed in last x days and report/clean them up.

Since the filesystem would generally be noatime. I was wondering what would be a nice design to go ahead with this?

Author:atuljangra,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/42059200/find-files-not-accessed-in-last-x-days-on-android
SILL :

I needed something similar, but I found out that android doesnt have implemented \"time of last access\", so I created database where I save access time when user opens the file. Maybe you can use something similar if user is opening files through your app.",
2017-02-06T01:49:20
yy