public function save($to = null, $append = false)
{
$file = null === $to ? $this->fullpath : $to;
if ($append) {
file_put_contents($file, $this->read(), FILE_APPEND);
} else {
file_put_contents($file, $this->read());
}
$this->setFile($this->fullpath, $this->allowed);
return $this;
}