protected function emptyDirectory($directory)
    {
        foreach ($this->doListContents($directory, true) as $path) {
            $this->deletePath($path);
        }
    }
protected function emptyDirectory($directory)
    {
        foreach ($this->doListContents($directory, true) as $path) {
            $this->deletePath($path);
        }
    }
protected function emptyDirectory ( $ directory ) { foreach ( $ this -> doListContents ( $ directory , true ) as $ path ) { $ this -> deletePath ( $ path ) ; } }
Empties a directory.

@param string $directory
Empties a directory .