Note that I prefer to exclude files such as "january.dat.dummy" i.e. I want to count only real extensions.
I am trying variations on this basic idea:
Code: Select all
$filelist = folderreport("files", "r", , "r", , "|");
echo gettokenindex(".dat", "$filelist", , "wc");
Code: Select all
$filelist = folderreport("files", "r", , "r", , "|")."|";
echo gettokenindex(".dat|", "$filelist", , "wc");Also, every variation returns 0 without the 'w' flag - but according to the Help the absence of this flag should force the token to be treated literally, which is what I think I need.
Any ideas?
XYplorer Beta Club