| @@ 137-141 (lines=5) @@ | ||
| 134 | public function deleteFile() |
|
| 135 | { |
|
| 136 | if ($this->file) { |
|
| 137 | if (file_exists($this->file)) { |
|
| 138 | if (false === @unlink($this->file)) { |
|
| 139 | throw FileException::lastError(); |
|
| 140 | } |
|
| 141 | } |
|
| 142 | ||
| 143 | if (file_exists($this->file . '.pubkey')) { |
|
| 144 | if (false === @unlink($this->file . '.pubkey')) { |
|
| @@ 143-147 (lines=5) @@ | ||
| 140 | } |
|
| 141 | } |
|
| 142 | ||
| 143 | if (file_exists($this->file . '.pubkey')) { |
|
| 144 | if (false === @unlink($this->file . '.pubkey')) { |
|
| 145 | throw FileException::lastError(); |
|
| 146 | } |
|
| 147 | } |
|
| 148 | ||
| 149 | $dir = dirname($this->file); |
|
| 150 | ||