rename .file to file