Skip to content

Commit

Permalink
updated delete raw data
Browse files Browse the repository at this point in the history
  • Loading branch information
caitlyn-wilhelm committed Dec 27, 2021
1 parent a4c67ee commit 5d2f7a5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions bigplanet/bigplanet.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def Main(bpInputFile, cores, quiet, overwrite, verbose, archive, deleterawdata,
if os.path.exists(bplArchive) == True:
Md5CheckSum(bplArchive, ignorecorrupt)
reply = None
question = ("Archive file is verified and secured. This will delete all raw data. \n This includes:" +
folder + " and all its contents, along with any checkpoint files generated from MultiPlanet")
question = ("Archive file is verified and secured. This will delete all raw data.\nThis includes: " +
folder + " and all its contents, along with any checkpoint files generated from MultiPlanet.")
while reply not in ("y", "n"):
reply = str(input(question + " (y/n): ")).lower().strip()
if reply[:1] == "y":
Expand All @@ -40,7 +40,12 @@ def Main(bpInputFile, cores, quiet, overwrite, verbose, archive, deleterawdata,
print("Raw data has been deleted")
exit()
if reply[:1] == "n":
print("Understood. Exiting.")
exit()
if reply[:1] != "n" or reply[:1] != "y":
print("User input was not valid. Exiting.")
exit()

else:
print("ERROR: The archive file, " + bplArchive + ",does not exist")

Expand Down

0 comments on commit 5d2f7a5

Please sign in to comment.