We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b09c92 commit edaa0b0Copy full SHA for edaa0b0
lib/private/Files/Storage/Common.php
@@ -106,12 +106,12 @@ public function __construct($parameters) {
106
* @return bool
107
*/
108
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;
+ if ($this->file_exists($path)) {
+ if ($this->is_dir($path)) {
+ return $this->rmdir($path);
+ } elseif ($this->is_file($path)) {
+ return $this->unlink($path);
+ }
115
}
116
return false;
117
0 commit comments