elif user == str(3):
src = input("Enter the location of the file you wish to copy: ")
print('\n')
dst = input("Next, enter the location where you wish to copy the file to: ")
if os.path.isfile(src):
while count < 1:
shutil.copyfile(src, dst)
print('Copy successful')
count = count + 1
else:
print('One of your paths is invalid')
What is the best way to check if path exist and file does not exist within the dst variable..
P.S: My apologies if this is a noobish question, but the best way to learn is to make mistakes!