Skip to content
Snippets Groups Projects
Commit 48eb0515 authored by Björn Schießle's avatar Björn Schießle Committed by Thomas Müller
Browse files

only lock if unlink is called for a file

parent 2b30fb48
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,9 @@ class LockingWrapper extends Wrapper {
public function unlink($path) {
try {
$this->getLock($path, Lock::WRITE);
if (\OC\Files\Filesystem::is_file($path)) {
$this->getLock($path, Lock::WRITE);
}
$result = $this->storage->unlink($path);
}
catch(\Exception $originalException) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment