function ListDirR(what, mask)


ListDirR lists the contents of a directory, and all of its sub-directories, in the local file system.


This functions accepts either 1 or 2 parameters:

  • what must be a valid and existent directory on a local file system, this parameter is mandatory
  • mask is a file-mask (example: "*.docx") to limit the scope of the returned results only to items matching such mask


This function is recursive, therefore it returns all matching items from the specific directory identified by the what parameter, as well as items contained in sub-directories of the what directory.