src/Services/FileStorage.php
public function files($directory)
    {
        return collect([])
            ->merge($this->filesystem->files($directory))
            ->map(function ($file) {
                return new File($file, $this);
            });
    }
public function files($directory)
    {
        return collect([])
            ->merge($this->filesystem->files($directory))
            ->map(function ($file) {
                return new File($file, $this);
            });
    }
public function files ( $ directory ) { return collect ( [ ] ) -> merge ( $ this -> filesystem -> files ( $ directory ) ) -> map ( function ( $ file ) { return new File ( $ file , $ this ) ; } ) ; }
Files list.

@param $directory

@return Collection
Files list .