Skip to content

Commit

Permalink
feature(storage): Allow deletion of symlinks with remove method in Co…
Browse files Browse the repository at this point in the history
…mmon storage
  • Loading branch information
taminob committed Nov 7, 2023
1 parent 2b19fe0 commit 9761eb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Files/Storage/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function __construct($parameters) {
protected function remove($path) {
if ($this->is_dir($path)) {
return $this->rmdir($path);
} elseif ($this->is_file($path)) {
} elseif ($this->is_file($path) || $this->is_link($path)) {
return $this->unlink($path);
} else {
return false;
Expand Down

0 comments on commit 9761eb9

Please sign in to comment.