diff options
Diffstat (limited to 'apps/files_external/lib/streamwrapper.php')
-rw-r--r-- | apps/files_external/lib/streamwrapper.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/files_external/lib/streamwrapper.php b/apps/files_external/lib/streamwrapper.php index e484325e2fb..3e3dc3e3af5 100644 --- a/apps/files_external/lib/streamwrapper.php +++ b/apps/files_external/lib/streamwrapper.php @@ -9,6 +9,10 @@ namespace OC\Files\Storage; abstract class StreamWrapper extends Common { + + /** + * @return string|null + */ abstract public function constructUrl($path); public function mkdir($path) { @@ -76,10 +80,17 @@ abstract class StreamWrapper extends Common { } } + /** + * @param string $path + * @param string $target + */ public function getFile($path, $target) { return copy($this->constructUrl($path), $target); } + /** + * @param string $target + */ public function uploadFile($path, $target) { return copy($path, $this->constructUrl($target)); } |