public function delete($purge = True)
{
if ($this->getWriteable()) {
if ($this->getIsFile() && @unlink($this->_realpath) || !$this->getIsFile() && ($purge ? $this->purge() : True) && @rmdir($this->_realpath)) {
$this->_exists = $this->_readable = $this->_writeable = False;
return True;
}
}
$this->addLog('Unable to delete filesystem object');
return False;
}