Partial function add file ext if it not exists