Lines Matching refs:filesystem
78 auto objPath = std::filesystem::path(baseEntryPath) / std::to_string(id); in createDump()
117 std::filesystem::path dumpPath(dumpDir); in captureDump()
170 void Manager::createEntry(const std::filesystem::path& file) in createEntry()
187 ->update(timestamp, std::filesystem::file_size(file), file); in createEntry()
192 auto objPath = std::filesystem::path(baseEntryPath) / std::to_string(id); in createEntry()
201 std::filesystem::file_size(file), file, in createEntry()
212 timestamp, "SIZE", std::filesystem::file_size(file), "FILENAME", in createEntry()
225 if (!std::filesystem::is_directory(i.first)) in watchCallback()
241 std::filesystem::is_directory(i.first)) in watchCallback()
254 void Manager::removeWatch(const std::filesystem::path& path) in removeWatch()
262 std::filesystem::path dir(dumpDir); in restore()
263 if (!std::filesystem::exists(dir) || std::filesystem::is_empty(dir)) in restore()
269 for (const auto& p : std::filesystem::directory_iterator(dir)) in restore()
275 if ((std::filesystem::is_directory(p.path())) && in restore()
281 std::filesystem::directory_iterator(p.path())) in restore()
290 auto objPath = std::filesystem::path(baseEntryPath) / idStr; in restore()
308 for (const auto& p : std::filesystem::recursive_directory_iterator(dir)) in getDirectorySize()
310 if (!std::filesystem::is_directory(p)) in getDirectorySize()
312 size += std::ceil(std::filesystem::file_size(p) / 1024.0); in getDirectorySize()
335 auto delPath = std::filesystem::path(dumpDir) / in getAllowedSize()