setup_file
ret = setup_file(get_cachedir(), path, &outfile);
ret = setup_file(get_updatedir(), path, &outupdt);