Add directory exclusion support for a syncing container.