Searched refs:temp_file (Results 1 – 4 of 4) sorted by relevance
67 with tempfile.NamedTemporaryFile(mode='w') as temp_file:68 temp_file.write(78 temp_file.flush()80 parser = AIDHeaderParser(temp_file.name)94 with tempfile.NamedTemporaryFile(mode='w') as temp_file:95 temp_file.write(105 temp_file.flush()107 parser = AIDHeaderParser(temp_file.name)121 with tempfile.NamedTemporaryFile(mode='w') as temp_file:122 temp_file.write([all …]
36 auto temp_file = std::string(std::tmpnam(nullptr)); in copy_to_rw_temp_file() local41 if (!WriteStringToFile(content, temp_file)) { in copy_to_rw_temp_file()44 if (chmod(temp_file.c_str(), in copy_to_rw_temp_file()48 return temp_file; in copy_to_rw_temp_file()
477 temp_file = out_file + ".sparse"478 img2simg_argv = ["img2simg", out_file, temp_file]480 os.rename(temp_file, out_file)
1061 temp_file = io.BytesIO()1062 certs_zip = zipfile.ZipFile(temp_file, "w", allowZip64=True)1066 common.ZipWriteStr(output_zip, filename, temp_file.getvalue())