renames function for handling unextensioned files