Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
  • Loading branch information
barneygale and nineteendo authored Jun 22, 2024
commit ab5fa4c6c885ddb77caddd4955ad7ff61318adb4
2 changes: 1 addition & 1 deletion Doc/library/pathlib.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ Copying, renaming and deleting
.. versionadded:: 3.14


.. method:: Path.copytree(target, *, follow_symlinks=True, dirs_exist_ok=False,
.. method:: Path.copytree(target, *, follow_symlinks=True, dirs_exist_ok=False, \
ignore=None, on_error=None)

Recursively copy this directory tree to the given destination.
Expand Down
1 change: 1 addition & 0 deletions Lib/test/test_pathlib/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,7 @@ def test_open_unbuffered(self):
self.assertIsInstance(f, io.RawIOBase)
self.assertEqual(f.read().strip(), b"this is file A")

@unittest.skipIf(sys.platform == "win32", "directories are always readable on Windows")
Comment thread
barneygale marked this conversation as resolved.
Outdated
def test_copytree_no_read_permission(self):
base = self.cls(self.base)
source = base / 'dirE'
Expand Down