a function to scan directories recursively and save the result to an array with informations like level, path, name and file informations.

you can optionally set a filter to return only files wich match the filter as extension.

copy the code of directories / recursive directory listing

click here to select all the code