add a directory target to a ignore list