Commit 36e2ba1
docs: Specify how the recursive argument to directory() works
- As described in issue #1435, the 'recursive' argument to
files.directory() does not ensure recursive ownership of the entire
directory tree. Only ownership of the top-level directory is
checked, not that of the subdirectories and files. Specifying
'recursive=True' will have no effect if the top-level directory
already matches the mode, user, and group.
- This is how the operation has behaved for a long time, so changing
existing functionality to check the entire tree could be
undesirable. It also takes more time to check the entire tree, so
doing so affects performance. A new option may be provided in the
future for callers to explicitly check the whole tree when this is
desired.
- Documented the existing behaviour of 'recursive' in the
files.directory() docstring.1 parent ab53843 commit 36e2ba1
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1569 | 1569 | | |
1570 | 1570 | | |
1571 | 1571 | | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
1572 | 1578 | | |
1573 | 1579 | | |
1574 | 1580 | | |
| |||
0 commit comments