MCPcopy Create free account
hub / github.com/apple/coremltools / ~AutoDeleteTempFile

Method ~AutoDeleteTempFile

mlmodel/tests/MILBlob/AutoDeleteTempFile.cpp:81–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79} // namespace
80
81AutoDeleteTempFile::~AutoDeleteTempFile()
82{
83 if (!m_filename.empty()) {
84 DeleteTree(m_filename);
85
86 if (m_fileDescriptor != -1) {
87 close(m_fileDescriptor);
88 }
89 }
90}
91
92const std::string& AutoDeleteTempFile::GetFilename() const
93{

Callers

nothing calls this directly

Calls 3

DeleteTreeFunction · 0.85
closeFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected