File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -1624,15 +1624,11 @@ example because the path doesn't exist).
16241624 Remove this file or symbolic link. If the path points to a directory,
16251625 use :func: `Path.rmdir ` instead.
16261626
1627- If *missing_ok * is false (the default), :exc: `FileNotFoundError ` is
1628- raised if the path does not exist.
1627+ This method propagates any :exc: `OSError ` encountered during removal.
16291628
16301629 If *missing_ok * is true, :exc: `FileNotFoundError ` exceptions will be
16311630 ignored (same behavior as the POSIX ``rm -f `` command).
16321631
1633- If an intermediate part of the path points to a file,
1634- :exc: `NotADirectoryError ` will be raised.
1635-
16361632 .. versionchanged :: 3.8
16371633 The *missing_ok * parameter was added.
16381634
You can’t perform that action at this time.
0 commit comments