| @@ 82-92 (lines=11) @@ | ||
| 79 | * @param string $path |
|
| 80 | * @param string $filename |
|
| 81 | */ |
|
| 82 | public function deleteFile($path, $filename) |
|
| 83 | { |
|
| 84 | $file = $path . '/' . $filename; |
|
| 85 | if (file_exists($file)) { |
|
| 86 | unlink($file); |
|
| 87 | } |
|
| 88 | ||
| 89 | if (is_dir($path)) { |
|
| 90 | rmdir($path); |
|
| 91 | } |
|
| 92 | } |
|
| 93 | ||
| 94 | abstract public function save(array $options = []); |
|
| 95 | } |
|
| @@ 83-93 (lines=11) @@ | ||
| 80 | * @param string $path |
|
| 81 | * @param string $filename |
|
| 82 | */ |
|
| 83 | public function deleteFile($path, $filename) |
|
| 84 | { |
|
| 85 | $file = $path . '/' . $filename; |
|
| 86 | ||
| 87 | if (file_exists($file)) { |
|
| 88 | unlink($file); |
|
| 89 | } |
|
| 90 | ||
| 91 | if (is_dir($path)) { |
|
| 92 | rmdir($path); |
|
| 93 | } |
|
| 94 | } |
|
| 95 | ||
| 96 | public function updateIssueToken($token, $uploadBy, $issueId) |
|