first commit

This commit is contained in:
2025-10-12 04:14:31 +02:00
commit 9a27cc175c
10 changed files with 190 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
def get_confirmation(backup_extension, selected_book):
print(f"Backup type: {backup_extension}")
while True:
confirm = input("Are these settings correct? (y/n): ").strip().lower()
if confirm == "y":
print(f"Starting backup for book: {selected_book['name']} with filetype {backup_extension}.")
print("Starting now.......")
return True
elif confirm == "n":
print("Stopping now.....")
return False
else:
print("Please enter 'y' or 'n'.")