generate_tmp_path