Get the backup directory, creating it if necessary.
()
| 16 | |
| 17 | |
| 18 | def get_backup_dir() -> Path: |
| 19 | """Get the backup directory, creating it if necessary.""" |
| 20 | backup_dir = Path(settings.BACKUP_ROOT) |
| 21 | backup_dir.mkdir(parents=True, exist_ok=True) |
| 22 | return backup_dir |
| 23 | |
| 24 | |
| 25 | def _is_postgresql() -> bool: |
no outgoing calls
no test coverage detected