修复ftp上传完成后,删除服务器端的文件,无法重新下载的问题
This commit is contained in:
@@ -65,6 +65,15 @@ public class RecordUtil {
|
||||
return;
|
||||
}
|
||||
DownloadGroupEntity groupEntity = DbDataHelper.getDGEntityByPath(dirPath);
|
||||
// 处理组任务存在,而子任务为空的情况
|
||||
if (groupEntity == null) {
|
||||
groupEntity = DbEntity.findFirst(DownloadGroupEntity.class, "dirPath=?", dirPath);
|
||||
if (groupEntity != null) {
|
||||
groupEntity.deleteData();
|
||||
DbEntity.deleteData(DownloadEntity.class, "groupHash=?", groupEntity.getGroupHash());
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
delGroupTaskRecord(groupEntity, removeFile, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user