It should be all `path` or all `pattern`, but not a mix.