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.
click here to select all the code