0

I did try to search on how how to update delta part of file, but information I got is more focused on PATCH topic instead of file update itself.

I am afraid I am missing something obvious.

Can anyone help me with code or to a blog where it is shown?

NiTiN
  • 81
  • 1
  • 9
  • What exactly are you doing? Are you writing a client which will send PATCH requests? Are you writing a server which will receive them? – tgdavies Jul 03 '20 at 05:58
  • @tgdavies, I am actually writing both. Until now, I used to send whole content of file from client and on server side, I will overwrite the whole file content. I wanted to think of a better way, in case file become huge. – NiTiN Jul 03 '20 at 09:16
  • So what do you need help with? – tgdavies Jul 03 '20 at 12:31
  • Just using the PATCH verb doesn't do anything except document that you are doing a partial update. You need to choose the format your data will be in, e.g. a diff, or a list of line numbers and the new contents for each line, or ... – tgdavies Jul 03 '20 at 12:42
  • I wanted both. Ok. But it looks like the amount of computation it requires to find the differences is more than just updating the file. Thanks for info. – NiTiN Jul 04 '20 at 02:59

0 Answers0