rename file.name to file.path