Rename dir_setfromfile to set from file