Implementing gitignore-like file structure checking rule.