Skip to content

Commit

Permalink
added in option to delete rar files after program finishes
Browse files Browse the repository at this point in the history
  • Loading branch information
cmclark00 committed Apr 28, 2023
1 parent 01a5a91 commit 5ad8d39
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,14 @@


# Print a message to let the user know that the operation was successful
print("Unpacking complete!")
print("Unpacking complete!")

# Ask if the user wants to delete the .rar archives
deleteRar = ""
while deleteRar != "Y" and deleteRar != "y" and deleteRar != "N" and deleteRar != "n":
deleteRar = input("Would you like to delete the XBLA folder and the .rar archives inside it? Enter Y or N: ")
if deleteRar == "Y" or deleteRar == "y":
shutil.rmtree(xbla_dir)
print("XBLA folder has been deleted.")
else:
quit

0 comments on commit 5ad8d39

Please sign in to comment.