DirectoryList

=DirectoryList(
    string path, 
    string filter (optional), 
    bool listDirectories (optional; default=FALSE), 
    bool absolutePaths (optional; default=FALSE),
    bool recursive (optional; default=FALSE)
  ) : vector

Returns array (See XPathOnUrl) with files, directory names or absolute paths.

Tip: Dump is a very useful function for working with functions that returns arrays.

Examples

Return an array of absolute paths of all XML files in folder "c:\foo" and it's subfolders.

=DirectoryList("C:\foo\","*.xml",FALSE,TRUE,TRUE)

Comments

comments powered by Disqus