public function listFiles(array $paths, $pattern = '|\.yaml$|', $levels = -1)
    {
        $list = [];
        foreach ($paths as $folder) {
            $list = array_merge_recursive($list, $this->detectAll($folder, $pattern, $levels));
        }
        return $list;
    }
public function listFiles(array $paths, $pattern = '|\.yaml$|', $levels = -1)
    {
        $list = [];
        foreach ($paths as $folder) {
            $list = array_merge_recursive($list, $this->detectAll($folder, $pattern, $levels));
        }
        return $list;
    }
public function listFiles ( array $ paths , $ pattern = '|\.yaml$|' , $ levels = - 1 ) { $ list = [ ] ; foreach ( $ paths as $ folder ) { $ list = array_merge_recursive ( $ list , $ this -> detectAll ( $ folder , $ pattern , $ levels ) ) ; } return $ list ; }
Return all paths for all the files with a timestamp.

@param  array  $paths    List of folders to look from.
@param  string $pattern  Pattern to match the file. Pattern will also be removed from the key.
@param  int    $levels   Maximum number of recursive directories.
@return array
Return all paths for all the files with a timestamp .