|
|
|
|
@ -1928,7 +1928,7 @@ class View { |
|
|
|
|
if ($mount) { |
|
|
|
|
try { |
|
|
|
|
$storage = $mount->getStorage(); |
|
|
|
|
if ($storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) { |
|
|
|
|
if ($storage && $storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) { |
|
|
|
|
$storage->acquireLock( |
|
|
|
|
$mount->getInternalPath($absolutePath), |
|
|
|
|
$type, |
|
|
|
|
@ -1969,7 +1969,7 @@ class View { |
|
|
|
|
if ($mount) { |
|
|
|
|
try { |
|
|
|
|
$storage = $mount->getStorage(); |
|
|
|
|
if ($storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) { |
|
|
|
|
if ($storage && $storage->instanceOfStorage('\OCP\Files\Storage\ILockingStorage')) { |
|
|
|
|
$storage->changeLock( |
|
|
|
|
$mount->getInternalPath($absolutePath), |
|
|
|
|
$type, |
|
|
|
|
|