Convert File function calls to Path function calls