Skip to content

Commit edaa0b0

Browse files
authored
Fix backport
Signed-off-by: Git'Fellow <[email protected]>
1 parent 5b09c92 commit edaa0b0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/private/Files/Storage/Common.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ public function __construct($parameters) {
106106
* @return bool
107107
*/
108108
protected function remove($path) {
109-
if ($this->is_dir($path)) {
110-
return $this->rmdir($path);
111-
} elseif ($this->is_file($path)) {
112-
return $this->unlink($path);
113-
} else {
114-
return false;
109+
if ($this->file_exists($path)) {
110+
if ($this->is_dir($path)) {
111+
return $this->rmdir($path);
112+
} elseif ($this->is_file($path)) {
113+
return $this->unlink($path);
114+
}
115115
}
116116
return false;
117117
}

0 commit comments

Comments
 (0)