From 8575bb2cb9f57d2b7e6d9e9e48e7c85485a7c63b Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 16 Jan 2015 13:32:42 +0100 Subject: Move cross storage copy logic to the storage --- lib/public/files/storage.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lib/public/files/storage.php') diff --git a/lib/public/files/storage.php b/lib/public/files/storage.php index 8a20eff2d9f..bac2c95ebce 100644 --- a/lib/public/files/storage.php +++ b/lib/public/files/storage.php @@ -358,4 +358,20 @@ interface Storage { * @throws InvalidPathException */ public function verifyPath($path, $fileName); + + /** + * @param \OCP\Files\Storage $sourceStorage + * @param string $sourceInternalPath + * @param string $targetInternalPath + * @return bool + */ + public function copyFromStorage(\OCP\Files\Storage $sourceStorage, $sourceInternalPath, $targetInternalPath); + + /** + * @param \OCP\Files\Storage $sourceStorage + * @param string $sourceInternalPath + * @param string $targetInternalPath + * @return bool + */ + public function moveFromStorage(\OCP\Files\Storage $sourceStorage, $sourceInternalPath, $targetInternalPath); } -- cgit v1.2.3