src/Commands/ImportMediaCommand.php
protected function listFiles($disk, $directory = '', $recursive = true)
    {
        if ($recursive) {
            return $this->filesystem->disk($disk)->allFiles($directory);
        } else {
            return $this->filesystem->disk($disk)->files($directory);
        }
    }
protected function listFiles($disk, $directory = '', $recursive = true)
    {
        if ($recursive) {
            return $this->filesystem->disk($disk)->allFiles($directory);
        } else {
            return $this->filesystem->disk($disk)->files($directory);
        }
    }
protected function listFiles ( $ disk , $ directory = '' , $ recursive = true ) { if ( $ recursive ) { return $ this -> filesystem -> disk ( $ disk ) -> allFiles ( $ directory ) ; } else { return $ this -> filesystem -> disk ( $ disk ) -> files ( $ directory ) ; } }
Generate a list of all files in the specified directory.
@param  string  $disk
@param  string  $directory
@param  bool    $recursive
@return array
Generate a list of all files in the specified directory .