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

Function MNNFileExist

source/core/MNNFileUtils.cpp:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30bool MNNFileExist(const char * file_name)
31{
32#if defined(WIN32) || defined(_WIN32) || defined(_WIN64) || defined(_MSC_VER)
33 return _access(file_name, 0) == 0;
34#else
35 return access(file_name, F_OK) == 0;
36#endif
37}
38
39bool MNNCreateDir(const char * path) {
40 if (MNNDirExist(path)) {

Callers 15

loadCompressMethod · 0.85
FileIsExistMethod · 0.85
parseCmdParamsFunction · 0.85
checkFileMethod · 0.85
setPrefixCacheFileMethod · 0.85
completePrefixWriteMethod · 0.85
loadMethod · 0.85
onAllocMethod · 0.85
onCreateMethod · 0.85
onCreateMethod · 0.85
onAllocMethod · 0.85
MNNOpenFileFunction · 0.85

Calls 1

accessFunction · 0.85

Tested by 2

runMethod · 0.68
runMethod · 0.68