X3 Photo Gallery Support Forums
Yes it can be done, but I don't like the process. If we want to get "number of files" for all subfolders of current folder, we need to loop inside every subfolder with the PHP glob() command, just to count the files inside, which will be slow. Also, it's not compatible with folder-cache, because the cache for a folder can't know if the contents of a subfolder have been modified.amwpsaa wrote:Displays the number of files in the current folder on the thumbnail,Can it be done?
But that's the only way to get the "file count" for all subfolders of current folder. We need to php glob() into all sub-folders and count the files that are returned. It's not gonna be too slow, but it would depend on the amount of subfolders and amount of files inside all subfolders, and also the speed of the server.amwpsaa wrote:I don't think it's necessary to calculate all the subfolders, that's definitely slow