function drop() { if (!$this->dir) { $this->data = []; } elseif ($glob = @glob($this->dir . '/*', GLOB_NOSORT)) { foreach ($glob as $file) { @unlink($file); } } }