Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-02-10 19:18:52 +0400
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-02-11 12:53:07 +0400
commit806522d0073cecb2c72ec41f7ae5009024fb7512 (patch)
tree05e18e917525bf868b21e5597ef3a277b10f07b6 /lib/connector
parent72a2075b1c25409a2bccde62809eff76812b9a25 (diff)
also rename file when it has not been present before
Diffstat (limited to 'lib/connector')
-rw-r--r--lib/connector/sabre/directory.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/connector/sabre/directory.php b/lib/connector/sabre/directory.php
index d8d74b922ab..6465dcbac30 100644
--- a/lib/connector/sabre/directory.php
+++ b/lib/connector/sabre/directory.php
@@ -65,9 +65,9 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node implements Sa
// mark file as partial while uploading (ignored by the scanner)
$partpath = $newPath . '.part';
-
+
\OC\Files\Filesystem::file_put_contents($partpath, $data);
-
+
// rename to correct path
\OC\Files\Filesystem::rename($partpath, $newPath);