server
server copied to clipboard
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.
Reproduction steps of the issue:
- Set up the following folder structure
/A/B/t.txt/C
- Copy
AinC t.txtis encrypted but does not have theencryptedflag set totrue, and therefore not readable.
With this PR, t.txt is readable.
Note: Open to better ways to share code between the two methods.