Thumbnailing Cache Path and Resolve cache path...
Posted: 28 Aug 2022 17:03
Don, for scripting purposes and my own info, if a user puts in an actual folder path entry (e.g., "D:\XYthumbs" without any "?") for "Cache path" in Configuration > Thumbnails (the "CacheDir" value in XYplorer.ini) and at the same time also has "Resolve cache path from current folder" checked, the "resolve cache path" setting would be ignored from what can see via testing, and the actual cache path would be the entry made for "cache path" in in all cases and all drives. Do you agree with that statement?
Also, in every case no matter what the user has for "Resolve path..." or "Cache path" entry, the actual cache path will be the result of "e <xythumbs>;" provided your "current" folder is the image folder thumbnail folder in question. Obviously, if you are not currently in the image folder, the <xythumbs> return may not the correct cache folder path when you have a "?" in the cache path entry or have no entry in the cache path. Does that also sound correct?
Edit: Another question concerning thumbnail cache files for "search" results: The previous "dat2" files had an additional "*" between the folder and the thumbnail size that indicated the cache was for search results (if cached); the new "ini" files don't appear to have any distinction of "search" results in their [General] section of the ini files. The log file however, XYthunbs.txt does still include a * between the folder and thumbnail size.
In previous scripts, I had to determine if the cache was for a search or branch, and I was able to do that by checking the "dat2" file for the 2 asterisks, "**". Now I'm not sure I can do it unless I go to the entry in the XYthumb.txt log, but that doesn't seem right. It's probably not too late because this wouldn't affect only searches or branch views, should the ini file have some distinction if it's for a search, like maybe "search:" before the folder as is done with paper folders, "paper:D:\Pictures\" or possibly an asterisk after the folder? Thanks.
Also, in every case no matter what the user has for "Resolve path..." or "Cache path" entry, the actual cache path will be the result of "e <xythumbs>;" provided your "current" folder is the image folder thumbnail folder in question. Obviously, if you are not currently in the image folder, the <xythumbs> return may not the correct cache folder path when you have a "?" in the cache path entry or have no entry in the cache path. Does that also sound correct?
Edit: Another question concerning thumbnail cache files for "search" results: The previous "dat2" files had an additional "*" between the folder and the thumbnail size that indicated the cache was for search results (if cached); the new "ini" files don't appear to have any distinction of "search" results in their [General] section of the ini files. The log file however, XYthunbs.txt does still include a * between the folder and thumbnail size.
In previous scripts, I had to determine if the cache was for a search or branch, and I was able to do that by checking the "dat2" file for the 2 asterisks, "**". Now I'm not sure I can do it unless I go to the entry in the XYthumb.txt log, but that doesn't seem right. It's probably not too late because this wouldn't affect only searches or branch views, should the ini file have some distinction if it's for a search, like maybe "search:" before the folder as is done with paper folders, "paper:D:\Pictures\" or possibly an asterisk after the folder? Thanks.