summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/Files/ObjectStore/ObjectStoreStorage.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/Files/ObjectStore/ObjectStoreStorage.php b/lib/private/Files/ObjectStore/ObjectStoreStorage.php
index 4ca00cf6a16..31786876724 100644
--- a/lib/private/Files/ObjectStore/ObjectStoreStorage.php
+++ b/lib/private/Files/ObjectStore/ObjectStoreStorage.php
@@ -97,6 +97,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common implements IChunkedFil
public function mkdir($path) {
$path = $this->normalizePath($path);
if ($this->file_exists($path)) {
+ $this->logger->warning("Tried to create an object store folder that already exists: $path");
return false;
}
@@ -120,10 +121,12 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common implements IChunkedFil
if ($parentType === false) {
if (!$this->mkdir($parent)) {
// something went wrong
+ $this->logger->warning("Parent folder ($parent) doesn't exist and couldn't be created");
return false;
}
} elseif ($parentType === 'file') {
// parent is a file
+ $this->logger->warning("Parent ($parent) is a file");
return false;
}
// finally create the new dir