|
|
|
@ -119,13 +119,16 @@ abstract class Common implements \OC\Files\Storage\Storage { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
$data = stream_get_contents($handle); |
|
|
|
|
fclose($handle); |
|
|
|
|
return $data; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function file_put_contents($path, $data) { |
|
|
|
|
$handle = $this->fopen($path, "w"); |
|
|
|
|
$this->removeCachedFile($path); |
|
|
|
|
return fwrite($handle, $data); |
|
|
|
|
$count = fwrite($handle, $data); |
|
|
|
|
fclose($handle); |
|
|
|
|
return $count; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function rename($path1, $path2) { |
|
|
|
|