用python将本地文件上传到FTP报错 10
报错如下,求解~Traceback(mostrecentcalllast):File"C:/PegasusWorkspace/IVuREC3G/Tools/SWDL/ft...
报错如下,求解~
Traceback (most recent call last):
File "C:/PegasusWorkspace/IVuREC3G/Tools/SWDL/ftp_fileCopy.py", line 54, in <module>
getFilename()
File "C:/PegasusWorkspace/IVuREC3G/Tools/SWDL/ftp_fileCopy.py", line 46, in getFilename
upload(ftp,remoteFile,localPath)
File "C:/PegasusWorkspace/IVuREC3G/Tools/SWDL/ftp_fileCopy.py", line 50, in upload
ftpname.storbinary('STOR '+remotePath,open("D:\\Test\\dd.txt",'rb'))
File "C:\Python27\lib\ftplib.py", line 454, in storbinary
conn = self.transfercmd(cmd, rest)
File "C:\Python27\lib\ftplib.py", line 361, in transfercmd
return self.ntransfercmd(cmd, rest)[0]
File "C:\Python27\lib\ftplib.py", line 330, in ntransfercmd
resp = self.sendcmd(cmd)
File "C:\Python27\lib\ftplib.py", line 244, in sendcmd
return self.getresp()
File "C:\Python27\lib\ftplib.py", line 219, in getresp
raise error_perm, resp
error_perm: 553 Could not create file. 展开
Traceback (most recent call last):
File "C:/PegasusWorkspace/IVuREC3G/Tools/SWDL/ftp_fileCopy.py", line 54, in <module>
getFilename()
File "C:/PegasusWorkspace/IVuREC3G/Tools/SWDL/ftp_fileCopy.py", line 46, in getFilename
upload(ftp,remoteFile,localPath)
File "C:/PegasusWorkspace/IVuREC3G/Tools/SWDL/ftp_fileCopy.py", line 50, in upload
ftpname.storbinary('STOR '+remotePath,open("D:\\Test\\dd.txt",'rb'))
File "C:\Python27\lib\ftplib.py", line 454, in storbinary
conn = self.transfercmd(cmd, rest)
File "C:\Python27\lib\ftplib.py", line 361, in transfercmd
return self.ntransfercmd(cmd, rest)[0]
File "C:\Python27\lib\ftplib.py", line 330, in ntransfercmd
resp = self.sendcmd(cmd)
File "C:\Python27\lib\ftplib.py", line 244, in sendcmd
return self.getresp()
File "C:\Python27\lib\ftplib.py", line 219, in getresp
raise error_perm, resp
error_perm: 553 Could not create file. 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询