MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / get_backup_dir

Function get_backup_dir

apps/backups/services.py:18–22  ·  view source on GitHub ↗

Get the backup directory, creating it if necessary.

()

Source from the content-addressed store, hash-verified

16
17
18def 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
25def _is_postgresql() -> bool:

Callers 3

create_backupFunction · 0.85
list_backupsFunction · 0.85
delete_backupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected