aboutsummaryrefslogtreecommitdiff
path: root/stmhal/import.c
blob: f2fd3b3deeaf93ec07c0c276c1189994c7f8e26e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdint.h>

#include "misc.h"
#include "mpconfig.h"
#include "qstr.h"
#include "lexer.h"
#if 0
#include "ff.h"
#endif

mp_import_stat_t mp_import_stat(const char *path) {
#if 0
    FILINFO fno;
    FRESULT res = f_stat(path, &fno);
    if (res == FR_OK) {
        if ((fno.fattrib & AM_DIR) != 0) {
            return MP_IMPORT_STAT_DIR;
        } else {
            return MP_IMPORT_STAT_FILE;
        }
    }
#endif
    return MP_IMPORT_STAT_NO_EXIST;
}