Set ``path``'s permission bits (no-op where ``os.chmod`` is absent).
(path: Path, mode: int)
| 24 | |
| 25 | |
| 26 | def _apply_mode(path: Path, mode: int) -> None: |
| 27 | """Set ``path``'s permission bits (no-op where ``os.chmod`` is absent).""" |
| 28 | if hasattr(os, "chmod"): |
| 29 | os.chmod(path, mode) |
| 30 | |
| 31 | |
| 32 | def _fsync_file(path: Path) -> None: |
no outgoing calls
no test coverage detected