MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ ensure_stub()

bool MayaFlux::Reflect::Tool::ensure_stub ( const std::filesystem::path & path,
std::string & error )
nodiscard

Writes an empty sidecar when none exists, so the include never fails a first scan.

Definition at line 129 of file Sidecar.cpp.

130{
131 if (std::filesystem::exists(path)) {
132 return true;
133 }
134 return write_if_changed(path, stub_text, error);
135}
bool write_if_changed(const std::filesystem::path &path, const std::string &content, std::string &error)
Replaces path with content only when the content differs.
Definition Sidecar.cpp:137

References write_if_changed().

Here is the call graph for this function: