Detect cap files