MCPcopy Create free account
hub / github.com/crownengine/crown / remove_file

Method remove_file

src/resource/data_compiler.cpp:672–688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670}
671
672void DataCompiler::remove_file(const char *path)
673{
674 TempAllocator512 ta;
675 DynamicString path_str(ta);
676 path_str.set(path, strlen32(path));
677
678 // Mark the entry as deleted but do not remove it from the map. We still
679 // need to know which resource has been deleted in order to remove its
680 // associated BLOB in the data directory at the next compile() call.
681 Stat st;
682 st.file_type = Stat::NO_ENTRY;
683 st.size = 0;
684 st.mtime = 0;
685 hash_map::set(_source_index._paths, path_str, st);
686
687 notify_remove_file(path);
688}
689
690void DataCompiler::add_tree(const char *path)
691{

Callers

nothing calls this directly

Calls 3

setClass · 0.85
notify_remove_fileFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected