We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5be60d6 commit 908f515Copy full SHA for 908f515
1 file changed
unix/modos.c
@@ -144,7 +144,11 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(mod_os_getenv_obj, mod_os_getenv);
144
STATIC mp_obj_t mod_os_mkdir(mp_obj_t path_in) {
145
// TODO: Accept mode param
146
const char *path = mp_obj_str_get_str(path_in);
147
+ #ifdef _WIN32
148
+ int r = mkdir(path);
149
+ #else
150
int r = mkdir(path, 0777);
151
+ #endif
152
RAISE_ERRNO(r, errno);
153
return mp_const_none;
154
}
0 commit comments