Skip to content
Merged
Changes from all commits
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
6 changes: 6 additions & 0 deletions src/pyinfra/operations/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -1569,6 +1569,12 @@ def directory(
+ force_backup: set to ``False`` to remove any existing non-file when ``force=True``
+ force_backup_dir: directory to move any backup to when ``force=True``

``recursive``:
Mode is only applied recursively if the base directory mode does not match
the specified value. User and group are both applied recursively if the
base directory does not match either one; otherwise they are unchanged for
the whole tree.

**Examples:**

.. code:: python
Expand Down