There was an error while loading. Please reload this page.
os.mkdir
1 parent 0f111f5 commit 1523c9eCopy full SHA for 1523c9e
2 files changed
Modules/clinic/posixmodule.c.h
Modules/posixmodule.c
@@ -4539,12 +4539,13 @@ If dir_fd is not None, it should be a file descriptor open to a directory,
4539
dir_fd may not be implemented on your platform.
4540
If it is unavailable, using it will raise a NotImplementedError.
4541
4542
-The mode argument is ignored on Windows.
+The mode argument is ignored on Windows. Where it is used, the current umask
4543
+value is first masked out.
4544
[clinic start generated code]*/
4545
4546
static PyObject *
4547
os_mkdir_impl(PyObject *module, path_t *path, int mode, int dir_fd)
-/*[clinic end generated code: output=a70446903abe821f input=e965f68377e9b1ce]*/
4548
+/*[clinic end generated code: output=a70446903abe821f input=a61722e1576fab03]*/
4549
{
4550
int result;
4551
#ifdef HAVE_MKDIRAT
0 commit comments