mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-13 02:40:15 -04:00
Ports #9755 (1.4-maint) to master. macOS flags files whose content lives in cloud storage (e.g. iCloud Drive) and is not present locally with SF_DATALESS. Reading such a file triggers downloading its content. This adds --exclude-dataless to borg create: the flags are checked right after stat() and before any open(), so excluded files/dirs never get materialized. Skipped paths are reported with the usual 'x' status, analogous to --exclude-nodump. Notes: - stat.SF_DATALESS only exists from Python 3.13 on, so there is a fallback to the value from macOS' sys/stat.h (0x40000000). - The check covers directories too (they can also be dataless), and we skip before opening/recursing into them. - Test fakes get_flags via monkeypatch since SF_DATALESS cannot be set from userspace. - Fish shell completion updated; bash/zsh completions don't exist in master. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| make-testdata | ||
| shell_completions/fish | ||
| borg.exe.spec | ||
| build-borg-using-nuitka.sh | ||
| build-borg-using-pyinstaller.sh | ||
| Dockerfile.linux-run | ||
| errorlist.py | ||
| fetch-binaries | ||
| glibc_check.py | ||
| linux-run | ||
| make.py | ||
| msys2-install-deps | ||
| sdist-sign | ||
| sign-binaries | ||
| upload-pypi | ||