def upload_tsv(file_path):
"""
Upload the given TSV files to the remote
Args:
file_path (str): absolute path to the file to be uploaded
"""
try:
with get_connection() as sftp:
with sftp.cd(settings.EXAMS_SFTP_UPLOAD_DIR):
sftp.put(file_path)
except (EOFError, SSHException,) as exc:
raise RetryableSFTPException() from exc
评论列表
文章目录