extname does something completely different, so i don't see your point.