only lock if unlink is called for a file

remotes/origin/ldap_group_count
Bjoern Schiessle 12 years ago committed by Thomas Müller
parent 2b30fb4862
commit 48eb0515e9
  1. 4
      lib/private/files/storage/wrapper/lockingwrapper.php

@ -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) {

Loading…
Cancel
Save