aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Files/Cache/IUpdater.php
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2024-12-03 16:24:28 +0100
committerLouis Chemineau <louis@chmn.me>2024-12-03 17:04:44 +0100
commit199b0bd4d9d32bab41c308515a23facd38c8331e (patch)
tree91e964b5722833c5f187cc6109d911b066e48e89 /lib/public/Files/Cache/IUpdater.php
parent5ee4c9effa991306d2bb536c3ce23d1fe3eaccc3 (diff)
downloadnextcloud-server-199b0bd4d9d32bab41c308515a23facd38c8331e.tar.gz
nextcloud-server-199b0bd4d9d32bab41c308515a23facd38c8331e.zip
fix(files): Correctly copy the cache information on copy operations
Needed to copy the `encrypted` flag of encrypted files when those files are two level down in a moved folder. Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'lib/public/Files/Cache/IUpdater.php')
-rw-r--r--lib/public/Files/Cache/IUpdater.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/public/Files/Cache/IUpdater.php b/lib/public/Files/Cache/IUpdater.php
index 3c2bc69715c..2bc702114b4 100644
--- a/lib/public/Files/Cache/IUpdater.php
+++ b/lib/public/Files/Cache/IUpdater.php
@@ -58,4 +58,11 @@ interface IUpdater {
* @since 9.0.0
*/
public function renameFromStorage(IStorage $sourceStorage, $source, $target);
+
+ /**
+ * Copy a file or folder in the cache and update the size, etag and mtime of the parent folders
+ *
+ * @since 31.0.0
+ */
+ public function copyFromStorage(IStorage $sourceStorage, string $source, string $target): void;
}