def deprecate_auth_file(auth_file):
    '\n    In 1.19+, file-based authentication was deprecated in favor of webhook\n    auth. Write out generic files that inform the user of this.\n    '
    csv_file = Path(auth_file)
    csv_file.parent.mkdir(exist_ok=True)
    csv_backup = Path('{}.{}'.format(csv_file, AUTH_BACKUP_EXT))
    if (csv_file.exists() and (not csv_backup.exists())):
        csv_file.rename(csv_backup)
    with csv_file.open('w') as f:
        f.write('# File-based authentication was removed in Charmed Kubernetes 1.19\n')
In 1.19+, file-based authentication was deprecated in favor of webhook
auth. Write out generic files that inform the user of this.
def deprecate_auth_file(auth_file):
    '\n    In 1.19+, file-based authentication was deprecated in favor of webhook\n    auth. Write out generic files that inform the user of this.\n    '
    csv_file = Path(auth_file)
    csv_file.parent.mkdir(exist_ok=True)
    csv_backup = Path('{}.{}'.format(csv_file, AUTH_BACKUP_EXT))
    if (csv_file.exists() and (not csv_backup.exists())):
        csv_file.rename(csv_backup)
    with csv_file.open('w') as f:
        f.write('# File-based authentication was removed in Charmed Kubernetes 1.19\n')