title: How to detect changes in a local file?
body: <p>I want to check a local file every time a scrip is run and detect if it has changed, I need to upload each changed file to a web app through an API
  See illustration below</p>
  <p><img src="https://i.stack.imgur.com/KSgo0.png" alt="Diagram of the problem" /></p>