1 year ago
#347101
baumanager
I can't move a File in Python : File not Found Error
Related Code: This function is bound to the button "Move File" (https://i.stack.imgur.com/3TBLq.png)
def move_file():
filename_url = "y2meta.com"
format = ".mp3"
space = filename_url + " "
hyphen ="- "
quality_file_320 = " (320kbps)"
backslash = "\\"
filename = '\\'+ space + hyphen +title+ quality_file_320 +format
download_source = r'C:\Users\kevin\Downloads'
source = download_source + filename
destination_source = r'C:\Users\kevin\Music'
destination = destination_source
dest = shutil.move(source,destination)
title = the Text which I enter in the Textbox (i.e. Runar) -->!(https://i.stack.imgur.com/3TBLq.png)
When I try to move a File it tells me everytime "File not Found Error", but I can't figure out what is wrong with my code, because the file is in the destination. A file that I want to move (i.e. Runar) !(https://i.stack.imgur.com/gtxUn.png)
I hope you can help me, and I'm sorry if this questions has been asked already, the solutions just didn't work for me. Thank you for your help in advance.
python
file
move
shutil
file-not-found
0 Answers
Your Answer