Skip to content

Conversation

xrgzs
Copy link
Member

@xrgzs xrgzs commented Aug 15, 2025

  1. 增加对快传响应的处理,支持快传时不进一步上传,避免 upToken = -1 报错
  2. 驱动配置增加 NoOverwriteUpload 选项,让 OpenList 自动处理覆盖操作,避免上传项目重复

已知问题:

ilanzou 返回的文件大小非 Bytes,而是 Kilo Bytes,因此无法使用文件大小准确判断一个文件是否被修改,需要注意同步软件的配置。

TODO: 将上一句话增加到文档 OpenListTeam/OpenList-Docs#136

@xrgzs xrgzs requested a review from Copilot August 15, 2025 13:11
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for rapid upload (秒传) in the ILanZou driver and introduces automatic duplication handling. The changes prevent errors when upToken = -1 (indicating rapid upload is available) and enable automatic overwrite handling to avoid duplicate uploads.

  • Adds handling for rapid upload responses to avoid upload token errors
  • Introduces NoOverwriteUpload configuration option for automatic duplicate handling
  • Creates new response type for rapid upload scenarios

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
drivers/ilanzou/types.go Adds UploadTokenRapidResp struct to handle rapid upload response format
drivers/ilanzou/meta.go Enables NoOverwriteUpload option for both ILanZou and FeijiPan drivers
drivers/ilanzou/driver.go Implements rapid upload logic when upToken == "-1"

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@xrgzs xrgzs added bug Something isn't working enhancement 增强/功能请求 go Pull requests that update go code labels Aug 17, 2025
@PIKACHUIM PIKACHUIM requested review from j2rong4cn and jyxjjj August 19, 2025 02:28
@xrgzs xrgzs merged commit b054919 into OpenListTeam:main Aug 19, 2025
14 checks passed
@xrgzs xrgzs deleted the fix/ilanzou-1 branch August 19, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement 增强/功能请求 go Pull requests that update go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants