Ensure directories in the tree of anything included with --include are defined in the state and manifest so we make dirs before we try to create files

This commit is contained in:
Miguel Jacq 2026-01-02 21:10:32 +11:00
parent 781efef467
commit c88405ef01
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
5 changed files with 170 additions and 5 deletions

View file

@ -24,7 +24,7 @@ def stat_triplet(path: str) -> Tuple[str, str, str]:
mode is a zero-padded octal string (e.g. "0644").
"""
st = os.stat(path, follow_symlinks=True)
mode = oct(st.st_mode & 0o777)[2:].zfill(4)
mode = oct(st.st_mode & 0o7777)[2:].zfill(4)
import grp
import pwd