diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-01-16 13:32:42 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-04-13 15:13:02 +0200 |
commit | 8575bb2cb9f57d2b7e6d9e9e48e7c85485a7c63b (patch) | |
tree | f9ef4eca310c8c9262a9b2755d0dfa97260d517f /lib/public | |
parent | b302592a6435b4f9bf18719b04314d9f463d54da (diff) | |
download | nextcloud-server-8575bb2cb9f57d2b7e6d9e9e48e7c85485a7c63b.tar.gz nextcloud-server-8575bb2cb9f57d2b7e6d9e9e48e7c85485a7c63b.zip |
Move cross storage copy logic to the storage
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/files/storage.php | 16 |
1 files changed, 16 insertions, 0 deletions
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); } |