protected function purgeDir($directory)
	{
		if( ! File::isDirectory($directory))
			return true;

		if(File::isWritable($directory))
			return File::cleanDirectory($directory);

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

		return false;
	}
protected function purgeDir($directory)
	{
		if( ! File::isDirectory($directory))
			return true;

		if(File::isWritable($directory))
			return File::cleanDirectory($directory);

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

		return false;
	}
protected function purgeDir ( $ directory ) { if ( ! File :: isDirectory ( $ directory ) ) return true ; if ( File :: isWritable ( $ directory ) ) return File :: cleanDirectory ( $ directory ) ; $ this -> error ( $ directory . ' is not writable' ) ; return false ; }
Purge directory.

@param  string $directory
@return boolean
Purge directory .