Created
May 16, 2016 22:52
-
-
Save Marginal/214578639d00858dc6d1d97e04e3daa8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- view.php.bak 2016-05-03 09:57:59.000000000 +0100 | |
+++ view.php 2016-05-16 23:39:41.000000000 +0100 | |
@@ -601,7 +601,8 @@ | |
list($storage, $internalPath) = $this->resolvePath($path); | |
$target = $storage->fopen($internalPath, 'w'); | |
if ($target) { | |
- list (, $result) = \OC_Helper::streamCopy($data, $target); | |
+ list ($count, $result) = \OC_Helper::streamCopy($data, $target); | |
+ \OCP\Util::writeLog('file_put_contents', sprintf('Wrote %d bytes from %s to %s: exists: %d, readable: %d, size: %d', $count, $data, $internalPath, $storage->file_exists($internalPath), $storage->isReadable($internalPath), $storage->filesize($internalPath)), \OCP\Util::INFO); | |
fclose($target); | |
fclose($data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment