Added ignore directory functionality

Callers can specify a list of directories to ignore