Searched refs:temp_path (Results 1 – 4 of 4) sorted by relevance
/art/artd/ |
D | file_utils.cc | 158 for (const auto& [original_path, temp_path] : moved_files) { in MoveAllOrAbandon() 160 std::filesystem::rename(temp_path, original_path, ec); in MoveAllOrAbandon() 166 temp_path, in MoveAllOrAbandon() 191 std::string temp_path = NewFile::BuildTempPath(original_path, "XXXXXX"); in MoveAllOrAbandon() local 192 int fd = mkstemps(temp_path.data(), /*suffixlen=*/4); in MoveAllOrAbandon() 198 std::filesystem::rename(original_path, temp_path, ec); in MoveAllOrAbandon() 200 UnlinkIfExists(temp_path); in MoveAllOrAbandon() 203 temp_path, in MoveAllOrAbandon() 207 moved_files.push_back({original_path, std::move(temp_path)}); in MoveAllOrAbandon() 224 for (const auto& [original_path, temp_path] : moved_files) { in MoveAllOrAbandon() [all …]
|
D | file_utils_test.cc | 128 std::string temp_path; in TEST_F() local 133 temp_path = new_file->TempPath(); in TEST_F() 137 EXPECT_FALSE(std::filesystem::exists(temp_path)); in TEST_F() 142 std::string temp_path; in TEST_F() local 146 temp_path = new_file->TempPath(); in TEST_F() 151 EXPECT_FALSE(std::filesystem::exists(temp_path)); in TEST_F()
|
/art/runtime/ |
D | runtime_image.cc | 1896 const std::string temp_path = ReplaceFileExtension(path, std::to_string(getpid()) + ".tmp"); in WriteImageToDisk() local 1898 image_file.reset(OS::CreateEmptyFileWriteOnly(temp_path.c_str())); in WriteImageToDisk() 1901 *error_msg = "Could not open " + temp_path + " for writing"; in WriteImageToDisk() 1926 if (!image_file.WriteHeaderAndClose(temp_path, image->GetHeader(), error_msg)) { in WriteImageToDisk() 1930 if (rename(temp_path.c_str(), path.c_str()) != 0) { in WriteImageToDisk() 1934 unlink(temp_path.c_str()); in WriteImageToDisk()
|
/art/test/testrunner/ |
D | testrunner.py | 572 temp_path = tempfile.mkdtemp(dir=env.ART_HOST_TEST_DIR) 573 args_test = ['--temp-path', temp_path] + args_test
|