aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-03-08 18:49:08 +0100
committerRobin Appelman <robin@icewind.nl>2021-03-12 17:22:36 +0100
commitd2bcb57a542b4119f47a687e2fbb6ee9f2525ddc (patch)
treeaf5530ed17ed0d9d61fd243495b2151534614650 /lib/public
parent32551b9ff7978395ec7777f11320056ab8413432 (diff)
downloadnextcloud-server-d2bcb57a542b4119f47a687e2fbb6ee9f2525ddc.tar.gz
nextcloud-server-d2bcb57a542b4119f47a687e2fbb6ee9f2525ddc.zip
add ICopyFromCache trait to expose existing implementation
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Files/Cache/ICache.php11
1 files changed, 11 insertions, 0 deletions
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
@@ -180,6 +180,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
*
* - ICache::NOT_FOUND: File is not in the cache