function ListDir(what, mask)


ListDir lists the contents of a directory 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 NOT recursive, therefore it only returns matching items from the specific directory identified by the what parameter, but NOT items contained in sub-directories of the what directory.