also rename file when it has not been present before
This commit is contained in:
parent
72a2075b1c
commit
806522d007
|
@ -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)
|
// mark file as partial while uploading (ignored by the scanner)
|
||||||
$partpath = $newPath . '.part';
|
$partpath = $newPath . '.part';
|
||||||
|
|
||||||
\OC\Files\Filesystem::file_put_contents($partpath, $data);
|
\OC\Files\Filesystem::file_put_contents($partpath, $data);
|
||||||
|
|
||||||
// rename to correct path
|
// rename to correct path
|
||||||
\OC\Files\Filesystem::rename($partpath, $newPath);
|
\OC\Files\Filesystem::rename($partpath, $newPath);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue