We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44761cb commit 2049f48Copy full SHA for 2049f48
src/Adapter/Filesystem/Satellite.php
@@ -48,15 +48,11 @@ public function build(
48
fclose($stream);
49
}
50
} else {
51
- $stream = fopen($this->workdir.'/'.$file->getPath(), 'wb');
52
- if (!$stream) {
53
- $dirname = dirname($this->workdir.'/'.$file->getPath());
54
- if (!is_dir($dirname))
55
- {
56
- mkdir($dirname, 0755, true);
57
- }
58
+ $dirname = dirname($this->workdir.'/'.$file->getPath());
+ if (!file_exists($dirname)) {
+ mkdir($dirname, 0755, true);
59
+ $stream = fopen($this->workdir.'/'.$file->getPath(), 'wb');
60
stream_copy_to_stream($file->asResource(), $stream);
61
62
0 commit comments