Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/private/Files/ObjectStore/ObjectStoreStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,13 @@ public function __construct(array $parameters) {
public function mkdir(string $path, bool $force = false, array $metadata = []): bool {
$path = $this->normalizePath($path);
if (!$force && $this->file_exists($path)) {
$this->logger->warning("Tried to create an object store folder that already exists: $path");
// The storage root is created on the fly by getMetaData() whenever the
// cache has no entry for it, so a caller that only wants to make sure the
// root exists would be warned about a folder this storage just created
// itself. An existing root is never an error, so say nothing about it.
if ($path !== '') {
$this->logger->warning("Tried to create an object store folder that already exists: '$path'");
}
return false;
}

Expand Down
Loading