MCPcopy Create free account
hub / github.com/Illation/ETEngine / RemoveFile

Method RemoveFile

Engine/source/EtCooker/PackageWriter.cpp:77–88  ·  view source on GitHub ↗

--------------------------------- PackageWriter::RemoveFile Remove a file without deleting it

Source from the content-addressed store, hash-verified

75// Remove a file without deleting it
76//
77void PackageWriter::RemoveFile(core::File* const file)
78{
79 auto entryIt = std::find_if(m_Files.begin(), m_Files.end(), [file](FileEntryInfo const& info)
80 {
81 return info.file == file;
82 });
83
84 if (entryIt != m_Files.cend())
85 {
86 m_Files.erase(entryIt);
87 }
88}
89
90//---------------------------------
91// PackageWriter::Cleanup

Callers 1

CookCompiledPackageFunction · 0.80

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected