set.file.extension function

Determine or modify file name extensions