apply rule to ignore unneed folders and files