fix: enhance file deletion handling and add option to hide uploading files and fix cloudreve refresh_token get error#9200
fix: enhance file deletion handling and add option to hide uploading files and fix cloudreve refresh_token get error#9200
Conversation
…files and fix cloudreve refresh_token get error
|
Walkthrough: This PR enhances the file deletion handling in the Cloudreve driver by implementing a retry mechanism for lock conflicts, adds an option to hide files currently being uploaded, and fixes the refresh token retrieval error. Additionally, it changes the HTTP method for a callback request. Changes:
|
| return nil | ||
| } | ||
|
|
||
| // 若存在锁冲突,则先清除锁再重试 |
There was a problem hiding this comment.
The retry mechanism for lock conflicts in file deletion is a good addition. However, ensure that the error handling for the del() function is robust enough to handle unexpected errors beyond lock conflicts.
| @@ -470,7 +471,7 @@ func (d *CloudreveV4) upS3(ctx context.Context, file model.FileStreamer, u FileU | |||
| } | |||
|
|
|||
| // 上传成功发送回调请求 | |||
There was a problem hiding this comment.
Changing the HTTP method from POST to GET for the callback request might have implications on the server-side logic. Ensure that the server is configured to handle GET requests for this endpoint.
cloudreve 文件删除方法和修改refresh_token获取错误