Quote:
Originally Posted by booknut
I gave it one more try and downloaded the latest zip by Dave_S and put the unzipped file on my SD card. I opened the file and the green light flickered for about 5 seconds, then nothing. The "Recent files" directly still listed my recently opened files on the SD and the HD.
|
It is not clear what your concern is about the "Recent Files" pseudo folder? The clearcache.exe.fb2 script is not intended to have any effect on the "Recent Files" pseudo folder. The "Recent Files" pseudo folder is a BookShelf file (actually named RecentlyRead.sys)and not a CoolReader file. The RecentlyRead.sys BookShelf file simply maintains a list of files that have been recently open and has nothing at all to do with the CoolReader cache. The BookShelf actively tries to prevent that file from being altered by the user.
The clearcache.exe.fb2 script simply clears the CoolReader cache on the SD card and the CoolReader cache in the main memory if there is one. The script leaves the ".cache" folder intact and simply removes all it's contents. No reboot is necessary after clearing the CoolReader cache.
Since the Linux rm command can just as easily delete files in the Linux system file system, when run as "root" in this case, you should be careful using random path arguments to the rm command.
Of course, if you have your own reason to delete the filename history data in the "Recent Files" pseudo folder you can delete that file in the same way that the cache deletion is done in the script because nothing can stop root from doing anything.