Lines Matching refs:filesystem
67 for (const auto& iter : std::filesystem::directory_iterator(MEDIA_DIR)) in processPNORImage()
82 if (!std::filesystem::is_regular_file(pnorTOC)) in processPNORImage()
108 auto path = std::filesystem::path(SOFTWARE_OBJPATH) / id; in processPNORImage()
159 if (!std::filesystem::is_directory(roDir)) in processPNORImage()
179 auto file = std::filesystem::path(filePath) / squashFSImage; in validateSquashFSImage()
180 if (std::filesystem::is_regular_file(file)) in validateSquashFSImage()
218 if (std::filesystem::is_directory(patchDir)) in reset()
220 for (const auto& iter : std::filesystem::directory_iterator(patchDir)) in reset()
222 std::filesystem::remove_all(iter); in reset()
230 if (std::filesystem::is_directory(rwDir)) in reset()
232 for (const auto& iter : std::filesystem::directory_iterator(rwDir)) in reset()
234 std::filesystem::remove_all(iter); in reset()
241 if (std::filesystem::is_directory(PNOR_PRSV)) in reset()
243 for (const auto& iter : std::filesystem::directory_iterator(PNOR_PRSV)) in reset()
250 std::filesystem::remove_all(iter); in reset()
259 if (!std::filesystem::exists(PNOR_RO_ACTIVE_PATH)) in isVersionFunctional()
264 std::filesystem::path activeRO = in isVersionFunctional()
265 std::filesystem::read_symlink(PNOR_RO_ACTIVE_PATH); in isVersionFunctional()
267 if (!std::filesystem::is_directory(activeRO)) in isVersionFunctional()
402 if (!std::filesystem::exists(symlinkPath)) in determineId()
407 auto target = std::filesystem::canonical(symlinkPath).string(); in determineId()
410 if (!std::filesystem::is_regular_file(target + "/" + PNOR_TOC_FILE)) in determineId()
424 auto path = std::filesystem::path(PNOR_PRSV_ACTIVE_PATH); in reset()
429 if (std::filesystem::is_regular_file(path)) in reset()
431 std::filesystem::remove(path); in reset()