Skip to content

fix(sync): (Codex) Dropbox exists swallows auth errors#1394

Open
cyfung1031 wants to merge 1 commit intomainfrom
fix/sync/009
Open

fix(sync): (Codex) Dropbox exists swallows auth errors#1394
cyfung1031 wants to merge 1 commit intomainfrom
fix/sync/009

Conversation

@cyfung1031
Copy link
Copy Markdown
Collaborator

exists() 现在只把 Dropbox 明确返回的「路径不存在」视为 false;如果是认证失败、网络错误、服务端错误等异常,会继续抛出,不再被误判成文件不存在。这样 DropboxFileWriter.write() 不会在 token 失效或网络异常时错误地走“创建新文件”逻辑。

  • 新增 isDropboxPathNotFound(),统一判断 Dropbox 的 path/not_found / path_lookup/not_found
  • 新增 exists() 的路径不存在与 auth error 回归测试。

@cyfung1031 cyfung1031 added the CloudSync Related to CloudSync label May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CloudSync Related to CloudSync

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant