File updating API code

Hello everyone!!

I am using the NextCloud app and was curious to know how are files updated. What happens when I edit the files in the app and save them? How are they stored in the backend?

It would be helpful if anyone could point out the GitHub repo for the API which could help me understand the algorithm.

Thanks in advance.

Nextcloud keeps multiple versions of files (search file versions) in the file system. metadata is stored in the SQL DB. user might be informed about updates though “Activity” app…

@wwe While updating does it use delta files or diffing or the complete files are sent to DB for storing?

Also it would be helpful if you could provide the link to the GitHub repo of the code.

the files are not stored in the DB. there are lot of discussions here especially when you search for backup topics…
Nextcloud repo is easy to find on Github.