Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
63b91e54
Commit
63b91e54
authored
Jun 02, 2016
by
Tommy Beadle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #24617: Add comment for os.mkdir about mode quirks
parent
39b10253
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
Doc/library/os.rst
Doc/library/os.rst
+10
-4
No files found.
Doc/library/os.rst
View file @
63b91e54
...
...
@@ -1623,9 +1623,15 @@ features:
Create a directory named *path* with numeric mode *mode*.
If the directory already exists, :exc:`FileExistsError` is raised.
.. _mkdir_modebits:
On some systems, *mode* is ignored. Where it is used, the current umask
value is first masked out. If the directory already exists,
:exc:`FileExistsError` is raised.
value is first masked out. If bits other than the last 9 (i.e. the last 3
digits of the octal representation of the *mode*) are set, their meaning is
platform-dependent. On some platforms, they are ignored and you should call
:func:`chmod` explicitly to set them.
This function can also support :ref:`paths relative to directory descriptors
<dir_fd>`.
...
...
@@ -1646,8 +1652,8 @@ features:
Recursive directory creation function. Like :func:`mkdir`, but makes all
intermediate-level directories needed to contain the leaf directory.
The
default *mode* is ``0o777`` (octal). On some systems, *mode* is
ignored. Where it is used, the current umask value is first masked out
.
The
*mode* parameter is passed to :func:`mkdir`; see :ref:`the mkdir()
description <mkdir_modebits>` for how it is interpreted
.
If *exist_ok* is ``False`` (the default), an :exc:`OSError` is raised if the
target directory already exists.
...
...
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