diff options
author | Louis Chemineau <louis@chmn.me> | 2024-12-03 16:24:28 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-02-13 23:35:59 +0000 |
commit | a663b3e0cd1122b920f837c096c37c10cc82c05e (patch) | |
tree | 5c824a52aa4b9abefce0c09a9eafd0a145025f16 /lib/public/Files | |
parent | 393eba8ea85890c1558af608cca110ce01e7cbea (diff) | |
download | nextcloud-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.php | 7 |
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; } |