Use non empty files for object store touch
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
a21f2c2813
commit
e041c7a92f
|
@ -364,7 +364,7 @@ class ObjectStoreStorage extends \OC\Files\Storage\Common {
|
||||||
$fileId = $this->getCache()->put($path, $stat);
|
$fileId = $this->getCache()->put($path, $stat);
|
||||||
try {
|
try {
|
||||||
//read an empty file from memory
|
//read an empty file from memory
|
||||||
$this->objectStore->writeObject($this->getURN($fileId), fopen('php://memory', 'r'));
|
$this->file_put_contents($path, ' ');
|
||||||
} catch (\Exception $ex) {
|
} catch (\Exception $ex) {
|
||||||
$this->getCache()->remove($path);
|
$this->getCache()->remove($path);
|
||||||
$this->logger->logException($ex, [
|
$this->logger->logException($ex, [
|
||||||
|
|
Loading…
Reference in New Issue