From fbe0e258e4e416fe6cc0734cdd31310a2ebf479a Mon Sep 17 00:00:00 2001 From: Tamino Bauknecht Date: Tue, 7 Nov 2023 10:10:11 +0100 Subject: [PATCH] feature(storage): Add symlink operation to local storage --- lib/private/Files/Storage/Local.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index f4d5649f506b5..0aa578b8a8529 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -326,6 +326,17 @@ public function file_put_contents($path, $data) { return $result; } + /** + * create symlink + * + * @param string $path + * @param string $target + * @return bool + */ + public function symlink($target, $path) { + return symlink($target, $this->getSourcePath($path)); + } + public function unlink($path) { if ($this->is_dir($path)) { return $this->rmdir($path);