Reversed file extension check: if not endswith: error else: import