From d2bcb57a542b4119f47a687e2fbb6ee9f2525ddc Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 8 Mar 2021 18:49:08 +0100 Subject: add ICopyFromCache trait to expose existing implementation Signed-off-by: Robin Appelman --- lib/public/Files/Cache/ICache.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/public') diff --git a/lib/public/Files/Cache/ICache.php b/lib/public/Files/Cache/ICache.php index 95ca29c2aa8..323359dcf68 100644 --- a/lib/public/Files/Cache/ICache.php +++ b/lib/public/Files/Cache/ICache.php @@ -179,6 +179,17 @@ interface ICache { */ public function moveFromCache(ICache $sourceCache, $sourcePath, $targetPath); + /** + * Copy a file or folder in the cache + * + * @param ICache $sourceCache + * @param ICacheEntry $sourceEntry + * @param string $targetPath + * @return int fileid of copied entry + * @since 22.0.0 + */ + public function copyFromCache(ICache $sourceCache, ICacheEntry $sourceEntry, string $targetPath): int; + /** * Get the scan status of a file * -- cgit v1.2.3