How can I count all of the files in a folder and files in its subfolders and so on?
Counting files only requires a simple method that will traverse all subfolders and count files accordingly. This method starts at the base folder. It counts the files in that folder and starts with its subfolders (if any). By calling itself, it can perform the same action of counting files as it traverses through the directory tree.
` count folders and documents
$count:=Size of array($DocumentList)
If (Size of array($FolderList)>0)
For ($i;1;Size of array($FolderList))
` count documents
To test, have another method that will pass a path:
$count:=Helper_CountFiles(Select folder("Select a folder to count files"))