Searched refs:fsPath (Results 1 – 5 of 5) sorted by relevance
/openbmc/pldm/oem/ibm/libpldmresponder/ |
H A D | file_table.cpp | 54 fs::path fsPath; in FileTable() local 57 fsPath.assign(path_substr); in FileTable() 58 if (fs::exists(fsPath)) in FileTable() 65 if (!fs::is_regular_file(fsPath)) in FileTable() 71 static_cast<uint16_t>(fsPath.filename().string().size()); in FileTable() 72 fileSize = static_cast<uint32_t>(fs::file_size(fsPath)); in FileTable() 87 std::copy_n(reinterpret_cast<const uint8_t*>(fsPath.filename().c_str()), in FileTable() 101 entry.fsPath = std::move(fsPath); in FileTable()
|
H A D | file_io.cpp | 393 if (!fs::exists(value.fsPath)) in readFileIntoMemory() 396 "PATH", value.fsPath, "FILE_HANDLE", fileHandle); in readFileIntoMemory() 403 auto fileSize = fs::file_size(value.fsPath); in readFileIntoMemory() 408 "PATH", value.fsPath, "SIZE", fileSize); in readFileIntoMemory() 442 return transferAll<DMA>(&intf, PLDM_READ_FILE_INTO_MEMORY, value.fsPath, in readFileIntoMemory() 507 if (!fs::exists(value.fsPath)) in writeFileFromMemory() 510 "PATH", value.fsPath, "FILE_HANDLE", fileHandle); in writeFileFromMemory() 517 auto fileSize = fs::file_size(value.fsPath); in writeFileFromMemory() 522 "PATH", value.fsPath, "SIZE", fileSize); in writeFileFromMemory() 528 "OFFSET", offset, "SIZE", fileSize, "PATH", value.fsPath, in writeFileFromMemory() [all...] |
H A D | file_table.hpp | 32 fs::path fsPath; //!< File path member
|
/openbmc/pldm/oem/ibm/test/ |
H A D | libpldmresponder_fileio_test.cpp | 500 ASSERT_EQ(strcmp(value.fsPath.c_str(), imageFile.c_str()), 0); in TEST_F() 501 ASSERT_EQ(static_cast<uint32_t>(fs::file_size(value.fsPath)), 1024); in TEST_F() 503 ASSERT_EQ(true, fs::exists(value.fsPath)); in TEST_F() 508 ASSERT_EQ(strcmp(value1.fsPath.c_str(), cksumFile.c_str()), 0); in TEST_F() 509 ASSERT_EQ(static_cast<uint32_t>(fs::file_size(value1.fsPath)), 16); in TEST_F() 511 ASSERT_EQ(true, fs::exists(value1.fsPath)); in TEST_F() 684 std::ifstream stream(value.fsPath, std::ios::in | std::ios::binary); in TEST_F() 801 std::ifstream stream(value.fsPath, std::ios::in | std::ios::binary); in TEST_F()
|
/openbmc/phosphor-power/tools/power-utils/ |
H A D | updater.cpp | 194 std::filesystem::path fsPath(imageDir); in update() 197 fsPath.filename().string(), psuInventoryPath, devPath, imageDir); in update() 190 std::filesystem::path fsPath(imageDir); update() local
|