I've run into problems with using the Test function to see if a file exists or not before performing another action.
My goal is to compare existing thumbnail images in one directory with epub files in a different directory, and eliminate the thumbnails for epubs which have been removed.
I've worked out gathering all the thumbnails in one variable so I can use that to set up a loop to compare with the existing epub files. The problem is that some of the file names include accented characters (author's names, even book titles) and the Test function (for a file) does not care for that.
Whatever the solution is (if there is one) it has to be very knock-down, drag-out basic, because I'm working with Android 2.1 and fancy plugins are not going to work.
I've been looking at the shell command "find" but I can't seem to arrive at a syntax that works. I have something like this:
find /sdcard/Nook -name %booklist(%index)
I know that shell commands can be persnickety about variables so I've tried a number of different approaches (one single variable, various combinations of single and double quotes, etc.) but I'm not getting a result.
Any suggestions?