Ext to find

from file.endswith() to file.find()