Lines Matching refs:fs
21 namespace fs = std::filesystem;
29 auto path = fs::path(PERSIST_DIR) / flashId; in storePriority()
30 if (!fs::is_directory(path, ec)) in storePriority()
32 if (fs::exists(path, ec)) in storePriority()
36 fs::remove_all(path, ec); in storePriority()
38 fs::create_directories(path, ec); in storePriority()
50 auto path = fs::path(PERSIST_DIR) / flashId; in storePurpose()
51 if (!fs::is_directory(path, ec)) in storePurpose()
53 if (fs::exists(path, ec)) in storePurpose()
57 fs::remove_all(path, ec); in storePurpose()
59 fs::create_directories(path, ec); in storePurpose()
71 auto path = fs::path(PERSIST_DIR) / flashId / priorityName; in restorePriority()
72 if (fs::exists(path, ec)) in restorePriority()
83 fs::remove_all(path, ec); in restorePriority()
133 auto path = fs::path(PERSIST_DIR) / flashId / purposeName; in restorePurpose()
134 if (fs::exists(path, ec)) in restorePurpose()
145 fs::remove_all(path, ec); in restorePurpose()
155 auto path = fs::path(PERSIST_DIR) / flashId; in removePersistDataDirectory()
156 if (fs::exists(path, ec)) in removePersistDataDirectory()
158 fs::remove_all(path, ec); in removePersistDataDirectory()