File updates in derectories

Hello.

I’m new to IPFS. I would like to give a big shout out to the team for all the hard work.

I’m planning on building an app on top of IPFS, and my first basic question is:

Let’s say I share a directory with ipfs add -r. Then I add a new file to that directory.
What happens?
Does it get automatically added or do I have to run the command again?

Best,
Anton

Hi plenty,

No your files are not added automaitcally when you update a file you need re-run your ipfs add -r because a hash represent your ressource at specify version (lokks like a photography) you need take another photo.

Regards

2 Likes