Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
908f5159
Commit
908f5159
authored
Nov 14, 2015
by
Paul Sokolovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unix/modos: Add Windows workaround for mkdir().
parent
5be60d69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
unix/modos.c
unix/modos.c
+4
-0
No files found.
unix/modos.c
View file @
908f5159
...
...
@@ -144,7 +144,11 @@ STATIC MP_DEFINE_CONST_FUN_OBJ_1(mod_os_getenv_obj, mod_os_getenv);
STATIC
mp_obj_t
mod_os_mkdir
(
mp_obj_t
path_in
)
{
// TODO: Accept mode param
const
char
*
path
=
mp_obj_str_get_str
(
path_in
);
#ifdef _WIN32
int
r
=
mkdir
(
path
);
#else
int
r
=
mkdir
(
path
,
0777
);
#endif
RAISE_ERRNO
(
r
,
errno
);
return
mp_const_none
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment