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

Function MNNCreateDir

source/core/MNNFileUtils.cpp:39–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39bool MNNCreateDir(const char * path) {
40 if (MNNDirExist(path)) {
41 return true;
42 }
43#if defined(WIN32) || defined(_WIN32) || defined(_WIN64) || defined(_MSC_VER)
44 if (CreateDirectory(path, NULL) || ERROR_ALREADY_EXISTS == GetLastError()) {
45 return true;
46 } else {
47 return false;
48 }
49#else
50 if (mkdir(path, 0755) == 0) {
51 return true;
52 }
53 return MNNDirExist(path);
54#endif
55}
56
57file_t MNNCreateFile(const char * file_name)
58{

Callers 13

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
saveVideoFramesMethod · 0.85
mainFunction · 0.85
saveInputOutputsFunction · 0.85
mainFunction · 0.85
OpenCLMmapAllocatorMethod · 0.85
onExecuteMethod · 0.85
onAllocMethod · 0.85
saveKVCacheInDiskMethod · 0.85
onSetCachePathMethod · 0.85

Calls 2

MNNDirExistFunction · 0.85
mkdirFunction · 0.85

Tested by

no test coverage detected