diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-02-10 16:18:52 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-02-11 09:53:07 +0100 |
commit | 806522d0073cecb2c72ec41f7ae5009024fb7512 (patch) | |
tree | 05e18e917525bf868b21e5597ef3a277b10f07b6 /lib | |
parent | 72a2075b1c25409a2bccde62809eff76812b9a25 (diff) | |
download | nextcloud-server-806522d0073cecb2c72ec41f7ae5009024fb7512.tar.gz nextcloud-server-806522d0073cecb2c72ec41f7ae5009024fb7512.zip |
also rename file when it has not been present before
Diffstat (limited to 'lib')
-rw-r--r-- | lib/connector/sabre/directory.php | 4 |
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); |