scan the file in the write lock when uploading over dav

This commit is contained in:
Robin Appelman 2016-02-10 16:21:13 +01:00
parent 9a2c517ca8
commit 65554ec333

View file

@ -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);
}