1 #include <stdio.h> 2 3 #include "py/lexer.h" 4 #include "memzip.h" 5 mp_import_stat(const char * path)6mp_import_stat_t mp_import_stat(const char *path) { 7 MEMZIP_FILE_INFO info; 8 9 if (memzip_stat(path, &info) != MZ_OK) { 10 return MP_IMPORT_STAT_NO_EXIST; 11 } 12 13 if (info.is_dir) { 14 return MP_IMPORT_STAT_DIR; 15 } 16 return MP_IMPORT_STAT_FILE; 17 } 18