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')
dst変数内にパスが存在し、ファイルが存在しないかどうかを確認する最良の方法は何ですか..
PS: これが初心者の質問である場合は申し訳ありませんが、学ぶための最良の方法は間違いを犯すことです!