public function getFiles()
    {
        $iterator = new RecursiveDirectoryIterator(
            $this->directory,
            FilesystemIterator::SKIP_DOTS
        );
        $iterator = new RecursiveIteratorIterator($iterator);
        $iterator->rewind();

        return $iterator;
    }
public function getFiles()
    {
        $iterator = new RecursiveDirectoryIterator(
            $this->directory,
            FilesystemIterator::SKIP_DOTS
        );
        $iterator = new RecursiveIteratorIterator($iterator);
        $iterator->rewind();

        return $iterator;
    }
public function getFiles ( ) { $ iterator = new RecursiveDirectoryIterator ( $ this -> directory , FilesystemIterator :: SKIP_DOTS ) ; $ iterator = new RecursiveIteratorIterator ( $ iterator ) ; $ iterator -> rewind ( ) ; return $ iterator ; }
Give back a list of all files in a given directory, recursively
This returns the filename relative to the given directory.

@return Iterator
Give back a list of all files in a given directory recursively This returns the filename relative to the given directory .