| @@ 239-243 (lines=5) @@ | ||
| 236 | } |
|
| 237 | ||
| 238 | // part file is allowed if !$creatable but the final file is $updatable |
|
| 239 | if (\pathinfo($path, PATHINFO_EXTENSION) !== 'part') { |
|
| 240 | if (!$exists && !$creatable) { |
|
| 241 | return false; |
|
| 242 | } |
|
| 243 | } |
|
| 244 | } |
|
| 245 | $info = [ |
|
| 246 | 'target' => $this->getMountPoint() . $path, |
|
| @@ 485-489 (lines=5) @@ | ||
| 482 | } |
|
| 483 | ||
| 484 | // part file is allowed if !$creatable but the final file is $updatable |
|
| 485 | if (\pathinfo($path, PATHINFO_EXTENSION) !== 'part') { |
|
| 486 | if (!$exists && !$creatable) { |
|
| 487 | throw new NotPermittedException(); |
|
| 488 | } |
|
| 489 | } |
|
| 490 | ||
| 491 | return parent::writeFile($path, $stream); |
|
| 492 | } |
|