summaryrefslogtreecommitdiffstats
path: root/lib/public/Files
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2024-12-03 16:24:28 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-02-13 23:35:59 +0000
commita663b3e0cd1122b920f837c096c37c10cc82c05e (patch)
tree5c824a52aa4b9abefce0c09a9eafd0a145025f16 /lib/public/Files
parent393eba8ea85890c1558af608cca110ce01e7cbea (diff)
downloadnextcloud-server-a663b3e0cd1122b920f837c096c37c10cc82c05e.tar.gz
nextcloud-server-a663b3e0cd1122b920f837c096c37c10cc82c05e.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')
-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;
}