local(d) = dir(...) #d->eachDirPathRecursive
The code below counts up the number of directories and sub-directories that are contained in the web-root. For purposes of this example, assume that web-root has the following directories, each with 1 sub-directory: 'css', 'img', and 'js'.
local(web_root) = dir('/') with d in #web_root->eachDirPathRecursive sum 1
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.