Commit 0405b221 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

modos: stat(): Accept bytes argument.

parent d07bf029
......@@ -44,7 +44,8 @@
STATIC mp_obj_t mod_os_stat(mp_obj_t path_in) {
struct stat sb;
const char *path = mp_obj_str_get_str(path_in);
uint len;
const char *path = mp_obj_str_get_data(path_in, &len);
int res = stat(path, &sb);
RAISE_ERRNO(res, errno);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment