dir.glob to check if it is an AIP or DIP