public function setLocation($dir = "bulletproof", $permission = 0666)
{
if (!file_exists($dir) && !is_dir($dir) && !$this->location) {
$createFolder = @mkdir("" . $dir, (int) $permission, true);
if (!$createFolder) {
$this->error = "Folder " . $dir . " could not be created";
return;
}
}
$this->location = $dir;
return $this;
}