Fix compute_sync_actions to properly treat the case where a file has been deleted on the remote but remains unchanged locally: previously the code always emitted an Upload (re-uploading the local copy). Now it checks the base checksum and emits DeleteLocal when the local copy matches the base (unchanged), and emits Upload only when the local copy differs (modified). Updated tests: adjusted test_remote_deleted_local_unchanged to assert DeleteLocal, and added test_remote_deleted_local_modified to verify the upload behavior when the local file is modified while remote was deleted. |
||
|---|---|---|
| .. | ||
| onyx-cli | ||
| onyx-core | ||