diff --git a/src/Adapter/Filesystem/Satellite.php b/src/Adapter/Filesystem/Satellite.php index d8edbc01..05195d10 100644 --- a/src/Adapter/Filesystem/Satellite.php +++ b/src/Adapter/Filesystem/Satellite.php @@ -48,6 +48,10 @@ public function build( fclose($stream); } } else { + $dirname = \dirname($this->workdir.'/'.$file->getPath()); + if (!file_exists($dirname)) { + mkdir($dirname, 0o755, true); + } $stream = fopen($this->workdir.'/'.$file->getPath(), 'wb'); stream_copy_to_stream($file->asResource(), $stream); fclose($stream);