Skip to content
Snippets Groups Projects
Commit 0405b221 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

modos: stat(): Accept bytes argument.

parent d07bf029
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment