diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-03-14 20:50:41 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 20:50:41 (GMT) |
commit | efa72501599029d9ac3f8a2e5ce900302c7d8f56 (patch) | |
tree | 21e0dcee86f9c0736813566246ed1b4a580d6c8a | |
parent | c6828408342cb1a2f8ba5038adccfbc1a95250cc (diff) | |
download | cpython-efa72501599029d9ac3f8a2e5ce900302c7d8f56.zip cpython-efa72501599029d9ac3f8a2e5ce900302c7d8f56.tar.gz cpython-efa72501599029d9ac3f8a2e5ce900302c7d8f56.tar.bz2 |
[3.10] bpo-30677: [doc] mention that os.mkdir() can raise FileNotFoundError (GH-31548) (GH-31877)
(cherry picked from commit 879fbd9472753149b627f32add3ddca90ac47ab7)
Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
Automerge-Triggered-By: GH:iritkatriel
-rw-r--r-- | Doc/library/os.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/os.rst b/Doc/library/os.rst index 5b2c2e0..2a1ea05 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -2041,7 +2041,8 @@ features: Create a directory named *path* with numeric mode *mode*. - If the directory already exists, :exc:`FileExistsError` is raised. + If the directory already exists, :exc:`FileExistsError` is raised. If a parent + directory in the path does not exist, :exc:`FileNotFoundError` is raised. .. _mkdir_modebits: |