I have a python program which basically just moves files around between remote FTP server and local machine. I have a bit of code to delete a file on the FTP site, similar to
try:
ftplib_obj.delete(some_file)
except ftplib.error_perm, e:
print str(e)
raise
I'm getting a "550: Delete operation failed", and I have no idea why. The most baffling thing is that I can log in manually, with the same credentials, and delete the file no problem. Any idea what the issue could be, or at least, is there a way I can get a more descriptive error message?
NOTE: I've gone through some possible causes of this error, such as file not existing or permission denied, but none of these apply.