src/Storage/FileStorage.php
private function resolveFile(\DirectoryIterator $file, array &$files)
    {
        if ($file->isDir() && !$file->isDot()) {
            $files = Tools::resolvePath($files, $this->getFileNames());
        }

        if ($file->isFile() && !$file->isLink() && $file->isReadable()) {
            $files = Tools::resolvePath($files, $file->getRealPath());
        }
    }
private function resolveFile(\DirectoryIterator $file, array &$files)
    {
        if ($file->isDir() && !$file->isDot()) {
            $files = Tools::resolvePath($files, $this->getFileNames());
        }

        if ($file->isFile() && !$file->isLink() && $file->isReadable()) {
            $files = Tools::resolvePath($files, $file->getRealPath());
        }
    }
private function resolveFile ( \ DirectoryIterator $ file , array & $ files ) { if ( $ file -> isDir ( ) && ! $ file -> isDot ( ) ) { $ files = Tools :: resolvePath ( $ files , $ this -> getFileNames ( ) ) ; } if ( $ file -> isFile ( ) && ! $ file -> isLink ( ) && $ file -> isReadable ( ) ) { $ files = Tools :: resolvePath ( $ files , $ file -> getRealPath ( ) ) ; } }
Add file to list or scan directory
@param \DirectoryIterator $file
@param array $files
Add file to list or scan directory