summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/Files/Storage/Local.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php
index f0a81f48930..ed80a4718d3 100644
--- a/lib/private/Files/Storage/Local.php
+++ b/lib/private/Files/Storage/Local.php
@@ -556,7 +556,7 @@ class Local extends \OC\Files\Storage\Common {
}
public function writeStream(string $path, $stream, int $size = null): int {
- $result = file_put_contents($this->getSourcePath($path), $stream);
+ $result = $this->file_put_contents($path, $stream);
if ($result === false) {
throw new GenericFileException("Failed write steam to $path");
} else {