protected function clearDir($path)
    {
        $items = [];
        $finder = new Finder();
        $finder->in($path)
            ->ignoreVCS(false)
            ->ignoreDotFiles(false);

        foreach ($finder as $item) {
            $items[] = $item->getRealpath();
        }

        if (count($items) > 0) {
            $this->fs->remove($items);
        }
    }
protected function clearDir($path)
    {
        $items = [];
        $finder = new Finder();
        $finder->in($path)
            ->ignoreVCS(false)
            ->ignoreDotFiles(false);

        foreach ($finder as $item) {
            $items[] = $item->getRealpath();
        }

        if (count($items) > 0) {
            $this->fs->remove($items);
        }
    }
protected function clearDir ( $ path ) { $ items = [ ] ; $ finder = new Finder ( ) ; $ finder -> in ( $ path ) -> ignoreVCS ( false ) -> ignoreDotFiles ( false ) ; foreach ( $ finder as $ item ) { $ items [ ] = $ item -> getRealpath ( ) ; } if ( count ( $ items ) > 0 ) { $ this -> fs -> remove ( $ items ) ; } }
Clears the directory.

@param string $path
Clears the directory .