Answer the question
In order to leave comments, you need to log in
How to download a file from ftp in python?
I took the code for a test, but the part that is responsible for downloading the file
writes:
with open(src, 'wb') as f:
PermissionError: [Errno 13] Permission denied: 'C:/Users/qubers/PycharmProjects'
Here is the code itself:
src = "C:/Users/qubers/PycharmProjects"
with open(src, 'wb') as f:
ftp.retrbinary('RETR ' + 'offsets.cfg', f.write)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question