Trigger command only when specific files/folders are updated?

If there a way to trigger command only when specific files/folders are updated?

Ex. I have a /documentation folder and would only like to trigger specific documentation commands when there are changes in the /documentation.

Thanks!