src/Services/FileStorage.php
public function directories($directory)
    {
        return collect($this->filesystem->directories($directory))
            ->map(function ($file) {
                return new File($file, $this);
            });
    }
public function directories($directory)
    {
        return collect($this->filesystem->directories($directory))
            ->map(function ($file) {
                return new File($file, $this);
            });
    }
public function directories ( $ directory ) { return collect ( $ this -> filesystem -> directories ( $ directory ) ) -> map ( function ( $ file ) { return new File ( $ file , $ this ) ; } ) ; }
Directories list.

@param $directory

@return Collection
Directories list .