protected function preloadAllStorages()
    {

        if ($this->allStoragesLoaded) {
            return $this->storages;
        }

        $filesAndDirs = $this->filesystem->listDirectory($this->url, true, false);

        foreach ($filesAndDirs as $file) {

            if ($this->filesystem->extension($file) != $this->fileExtension()) {
                continue;
            }

            $this->getOrCreateStorage(new Url($file));

        }

        $this->allStoragesLoaded = true;

        return $this->storages;

    }
protected function preloadAllStorages()
    {

        if ($this->allStoragesLoaded) {
            return $this->storages;
        }

        $filesAndDirs = $this->filesystem->listDirectory($this->url, true, false);

        foreach ($filesAndDirs as $file) {

            if ($this->filesystem->extension($file) != $this->fileExtension()) {
                continue;
            }

            $this->getOrCreateStorage(new Url($file));

        }

        $this->allStoragesLoaded = true;

        return $this->storages;

    }
protected function preloadAllStorages ( ) { if ( $ this -> allStoragesLoaded ) { return $ this -> storages ; } $ filesAndDirs = $ this -> filesystem -> listDirectory ( $ this -> url , true , false ) ; foreach ( $ filesAndDirs as $ file ) { if ( $ this -> filesystem -> extension ( $ file ) != $ this -> fileExtension ( ) ) { continue ; } $ this -> getOrCreateStorage ( new Url ( $ file ) ) ; } $ this -> allStoragesLoaded = true ; return $ this -> storages ; }
Read all storages to have all the data.

@return array
Read all storages to have all the data .