From 806522d0073cecb2c72ec41f7ae5009024fb7512 Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Sun, 10 Feb 2013 16:18:52 +0100 Subject: also rename file when it has not been present before --- lib/connector/sabre/directory.php | 4 ++-- 1 file 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); -- cgit v1.2.3