I feel this bleeds too much logic which will have to be adjusted in all occurences if other os values or extensions come up. Either we need to eliminate the need for the extension or we should have function of the sort expand_filename(foo) that contains the logic.
I feel this bleeds too much logic which will have to be adjusted in all occurences if other os values or extensions come up. Either we need to eliminate the need for the extension or we should have function of the sort expand_ filename( foo) that contains the logic.