def RemoveFileFTP(ftp, filepath):
"""Delete a file on a remote server."""
import ftplib
try:
ftp.delete(filepath)
except ftplib.all_errors as e:
import sys
print('POPUP: Could not remove file {0}: {1}'.format(filepath, e))
sys.stdout.flush()
评论列表
文章目录