If the current folder has one subfolder, then
Code: Select all
echo listfolder(<curpath>, "*", 2+32);
will report the digit '1'. But if there are no subfolders it reports a blank, rather than the digit '0'. I think it should be '0' since a numerical count is being specifically requested by the '32' flag bit. If that flag was not set then I would expect the "" / blank.