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 f01c600 commit 2b19fe0Copy full SHA for 2b19fe0
apps/dav/lib/Connector/Sabre/File.php
@@ -557,6 +557,26 @@ public function delete() {
557
}
558
559
560
+ /**
561
+ * Return symlink target of the file
562
+ *
563
+ * @return string|null
564
+ * @throws NotFound
565
+ * @throws Forbidden
566
+ * @throws FileLocked
567
+ */
568
+ public function readlink() {
569
+ if (!$this->info->isReadable()) {
570
+ throw new NotFound();
571
+ }
572
+
573
+ try {
574
+ return $this->fileView->readlink($this->path);
575
+ } catch (\Exception $e) {
576
+ $this->convertToSabreException($e);
577
578
579
580
/**
581
* Returns the mime-type for a file
582
*
0 commit comments