| 28 | } |
| 29 | |
| 30 | bool 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 | |
| 39 | bool MNNCreateDir(const char * path) { |
| 40 | if (MNNDirExist(path)) { |