Undo folder move overwrite

Nextcloud version (eg, 20.0.5): 18.0.4
Operating system and version (eg, Ubuntu 20.04): 18.04.4
Apache or nginx version (eg, Apache 2.4.25): 2.4.29-1ubuntu4.13
PHP version (eg, 7.4): 7.0.33-0ubuntu0.16.04.14

I had a folder /CameraA and I wanted to merge it into another folder /Pictures/CameraA, I did the move using the iOS app and it asked whether to overwrite the folder, thinking it would merge the contents but it deleted the old folder and replaced it with the folder I moved. How do I undo this. I made a big mistake here. And possibly lost years of data here. (yes I know, I should have a backup!) Please help.

If this is anyway resolvable I’ll provide more logs/config files. Thanks.

I found the old folder in the trashbin directory on the server. And I restored it from there. I did not see anything in the app “Trash” folder.