aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/dav/lib/Connector/Sabre/File.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/File.php b/apps/dav/lib/Connector/Sabre/File.php
index d2a71eb3e7b..89ab3fa0bc7 100644
--- a/apps/dav/lib/Connector/Sabre/File.php
+++ b/apps/dav/lib/Connector/Sabre/File.php
@@ -133,8 +133,12 @@ class File extends Node implements IFile {
$transferId = \rand();
// mark file as partial while uploading (ignored by the scanner)
$partFilePath = $this->getPartFileBasePath($this->path) . '.ocTransferId' . $transferId . '.part';
+ $partParentPath = dirname($partFilePath);
+ if ($partParentPath === '.') {
+ $partParentPath = '';
+ }
- if (!$view->isCreatable($partFilePath) && $view->isUpdatable($this->path)) {
+ if (!$view->isCreatable($partParentPath) && $view->isUpdatable($this->path)) {
$needsPartFile = false;
}
}