From eeb0bea97a0ebb5b250153e6fb3c2894dfa3842b Mon Sep 17 00:00:00 2001 From: bihailantian <1229717912@qq.com> Date: Thu, 2 Sep 2021 16:32:27 +0800 Subject: [PATCH] Update SFtpURecordHandler.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix SFTP断点上传文件错误 --- .../java/com/arialyy/aria/sftp/upload/SFtpURecordHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SFtpComponent/src/main/java/com/arialyy/aria/sftp/upload/SFtpURecordHandler.java b/SFtpComponent/src/main/java/com/arialyy/aria/sftp/upload/SFtpURecordHandler.java index 400c5689..37ae3877 100644 --- a/SFtpComponent/src/main/java/com/arialyy/aria/sftp/upload/SFtpURecordHandler.java +++ b/SFtpComponent/src/main/java/com/arialyy/aria/sftp/upload/SFtpURecordHandler.java @@ -63,14 +63,14 @@ final class SFtpURecordHandler extends RecordHandler { + ftpAttrs.getSize() + "】" + "尝试从位置:" - + (ftpAttrs.getSize() - 1) + + ftpAttrs.getSize() + "开始上传"); getWrapper().setNewTask(false); // 修改记录 ThreadRecord threadRecord = record.threadRecords.get(0); //修改本地保存的停止地址为服务器上对应文件的大小 - threadRecord.startLocation = ftpAttrs.getSize() - 1; + threadRecord.startLocation = ftpAttrs.getSize(); } } else { ALog.d(TAG, "SFTP服务器上不存在该文件");