scan the file in the write lock when uploading over dav
This commit is contained in:
parent
9a2c517ca8
commit
65554ec333
1 changed files with 3 additions and 3 deletions
|
@ -194,15 +194,15 @@ class File extends Node implements IFile {
|
|||
}
|
||||
}
|
||||
|
||||
// since we skipped the view we need to scan and emit the hooks ourselves
|
||||
$storage->getUpdater()->update($internalPath);
|
||||
|
||||
try {
|
||||
$this->changeLock(ILockingProvider::LOCK_SHARED);
|
||||
} catch (LockedException $e) {
|
||||
throw new FileLocked($e->getMessage(), $e->getCode(), $e);
|
||||
}
|
||||
|
||||
// since we skipped the view we need to scan and emit the hooks ourselves
|
||||
$storage->getUpdater()->update($internalPath);
|
||||
|
||||
if ($view) {
|
||||
$this->emitPostHooks($exists);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue