MCPcopy Create free account
hub / github.com/alibaba/MNN / MNNRemoveFile

Function MNNRemoveFile

source/core/MNNFileUtils.cpp:150–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150ErrorCode MNNRemoveFile(const char * file_name)
151{
152 if (!MNNFileExist(file_name)) {
153 return FILE_NOT_EXIST;
154 }
155#if defined(WIN32) || defined(_WIN32) || defined(_WIN64) || defined(_MSC_VER)
156 if (!DeleteFile(file_name)) {
157 return FILE_REMOVE_FAILED;
158 }
159#else
160 if (-1 == unlink(file_name)) {
161 return FILE_REMOVE_FAILED;
162 }
163#endif
164 return NO_ERROR;
165}
166
167size_t MNNGetFileSize(file_t file)
168{

Callers 9

mainFunction · 0.85
postTreatFunction · 0.85
setPrefixCacheFileMethod · 0.85
~ OpenCLMmapAllocatorMethod · 0.85
onCreateMethod · 0.85
removeKVCacheFileMethod · 0.85
~ MmapAllocatorMethod · 0.85
onReleaseMethod · 0.85
runMethod · 0.85

Calls 1

MNNFileExistFunction · 0.85

Tested by 1

runMethod · 0.68