Did you know ... Search Documentation:
Predicate prolog_file_type/2