protected function purgeDir($directory)
	{
		if( ! $this->filesystem->isDirectory($directory))
			return true;

		if($this->filesystem->isWritable($directory))
			return $this->filesystem->cleanDirectory($directory);

		$this->error($directory . ' is not writable');

		return false;
	}
protected function purgeDir($directory)
	{
		if( ! $this->filesystem->isDirectory($directory))
			return true;

		if($this->filesystem->isWritable($directory))
			return $this->filesystem->cleanDirectory($directory);

		$this->error($directory . ' is not writable');

		return false;
	}
protected function purgeDir ( $ directory ) { if ( ! $ this -> filesystem -> isDirectory ( $ directory ) ) return true ; if ( $ this -> filesystem -> isWritable ( $ directory ) ) return $ this -> filesystem -> cleanDirectory ( $ directory ) ; $ this -> error ( $ directory . ' is not writable' ) ; return false ; }
Remove the contents of a given directory.

@param  string $directory

@return boolean
Remove the contents of a given directory .