Lines Matching refs:path

29     auto path = fs::path(PERSIST_DIR) / flashId;  in storePriority()  local
30 if (!fs::is_directory(path, ec)) in storePriority()
32 if (fs::exists(path, ec)) in storePriority()
35 warning("Removing non-directory file: {PATH}", "PATH", path); in storePriority()
36 fs::remove_all(path, ec); in storePriority()
38 fs::create_directories(path, ec); in storePriority()
40 path = path / priorityName; in storePriority()
42 std::ofstream os(path.c_str()); in storePriority()
50 auto path = fs::path(PERSIST_DIR) / flashId; in storePurpose() local
51 if (!fs::is_directory(path, ec)) in storePurpose()
53 if (fs::exists(path, ec)) in storePurpose()
56 warning("Removing non-directory file: {PATH}", "PATH", path); in storePurpose()
57 fs::remove_all(path, ec); in storePurpose()
59 fs::create_directories(path, ec); in storePurpose()
61 path = path / purposeName; in storePurpose()
63 std::ofstream os(path.c_str()); in storePurpose()
71 auto path = fs::path(PERSIST_DIR) / flashId / priorityName; in restorePriority() local
72 if (fs::exists(path, ec)) in restorePriority()
74 std::ifstream is(path.c_str(), std::ios::in); in restorePriority()
83 fs::remove_all(path, ec); in restorePriority()
133 auto path = fs::path(PERSIST_DIR) / flashId / purposeName; in restorePurpose() local
134 if (fs::exists(path, ec)) in restorePurpose()
136 std::ifstream is(path.c_str(), std::ios::in); in restorePurpose()
145 fs::remove_all(path, ec); in restorePurpose()
155 auto path = fs::path(PERSIST_DIR) / flashId; in removePersistDataDirectory() local
156 if (fs::exists(path, ec)) in removePersistDataDirectory()
158 fs::remove_all(path, ec); in removePersistDataDirectory()