repress warning for is_file