Skip to content

Commit

Permalink
feature(storage): Add symlink operation to local storage
Browse files Browse the repository at this point in the history
  • Loading branch information
taminob committed Nov 7, 2023
1 parent 21c1dfd commit fbe0e25
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/private/Files/Storage/Local.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fbe0e25

Please sign in to comment.