ftplib.error_perm: 553 Could not create file. (Python 2.4.4)
问题 I am writing to the home directory of the user I'm FTPing into, so permissions shouldn't be an issue. FTP works in FileZilla. I checked the vsftp.conf and made the local_enable=YES change On a Debian4 system with Python 2.4.4 (I can't upgrade it), I am using this code with ftplib >>> f = ftplib.FTP('address', 'user', 'password') >>> f.cwd('/home/user/some/dir/') '250 Directory successfully changed.' >>> myfile = '/full/path/of/file.txt' >>> o = open(myfile, 'rb') >>> f.storbinary('STOR ' +