protected function getFolderItemCount($path)
    {
        $folderItems = array_merge(
            $this->getStorageDisk()->files($path),
            $this->getStorageDisk()->directories($path)
        );

        $size = 0;
        foreach ($folderItems as $folderItem) {
            if ($this->isVisible($folderItem)) {
                $size++;
            }
        }

        return $size;
    }
protected function getFolderItemCount($path)
    {
        $folderItems = array_merge(
            $this->getStorageDisk()->files($path),
            $this->getStorageDisk()->directories($path)
        );

        $size = 0;
        foreach ($folderItems as $folderItem) {
            if ($this->isVisible($folderItem)) {
                $size++;
            }
        }

        return $size;
    }
protected function getFolderItemCount ( $ path ) { $ folderItems = array_merge ( $ this -> getStorageDisk ( ) -> files ( $ path ) , $ this -> getStorageDisk ( ) -> directories ( $ path ) ) ; $ size = 0 ; foreach ( $ folderItems as $ folderItem ) { if ( $ this -> isVisible ( $ folderItem ) ) { $ size ++ ; } } return $ size ; }
Returns a number of items on a folder.
@param string $path Specifies the folder path relative to the storage disk root.
@return integer Returns the number of items in the folder.
Returns a number of items on a folder .