You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
333 B
18 lines
333 B
11 years ago
|
#include <stdio.h>
|
||
|
|
||
10 years ago
|
#include "py/lexer.h"
|
||
11 years ago
|
#include "memzip.h"
|
||
|
|
||
|
mp_import_stat_t mp_import_stat(const char *path) {
|
||
|
MEMZIP_FILE_INFO info;
|
||
|
|
||
|
if (memzip_stat(path, &info) != MZ_OK) {
|
||
|
return MP_IMPORT_STAT_NO_EXIST;
|
||
|
}
|
||
|
|
||
|
if (info.is_dir) {
|
||
|
return MP_IMPORT_STAT_DIR;
|
||
|
}
|
||
|
return MP_IMPORT_STAT_FILE;
|
||
|
}
|