DEKI/ENGINE docs
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
FileIO.h File Reference

Namespaces

namespace  DekiEditor

Functions

bool DekiEditor::ReadFileToString (const std::string &path, std::string &out, std::string &err)
 Reads a whole file into out.
bool DekiEditor::ReplaceFileWith (const std::filesystem::path &tmp, const std::filesystem::path &target, std::string &err, bool durable=true)
 Renames a finished temp file over target in one step.
bool DekiEditor::AtomicWriteFile (const std::string &path, std::string_view content, std::string &err, bool durable=true)
 Replaces path with content atomically: writes a sibling .tmp file and renames it over the destination, so a crash mid-write cannot leave a partial file.
bool DekiEditor::IsLinkOrJunction (const std::filesystem::path &path)
 True when path is a symbolic link or, on Windows, a junction.
bool DekiEditor::RemoveTree (const std::filesystem::path &path, std::error_code &ec)
 Deletes path and everything under it, like std::filesystem::remove_all, including read-only files: git keeps its pack files read-only, and remove_all cannot delete those on Windows.