Commit 3ab307b
committed
fix(quota): protect local files from deletion when quota blocked upload
If a file failed to upload because the server quota was exceeded,
it was never actually stored on the server — but the sync client
could still delete the local copy when the remote parent folder was
later moved or deleted via the web interface.
checkNewDeleteConflict() now checks the error blacklist before issuing
a local REMOVE. If the file carries an InsufficientRemoteStorage entry,
it is kept locally and reported as a soft error instead. Setting
_childIgnored also prevents the parent folder from being wiped, so the
file remains reachable until the user resolves the quota situation.
Signed-off-by: Camila Ayres <hello@camilasan.com>1 parent 9ac8d75 commit 3ab307b
2 files changed
Lines changed: 28 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2505 | 2505 | | |
2506 | 2506 | | |
2507 | 2507 | | |
2508 | | - | |
| 2508 | + | |
2509 | 2509 | | |
2510 | | - | |
2511 | | - | |
2512 | | - | |
2513 | | - | |
2514 | | - | |
| 2510 | + | |
| 2511 | + | |
| 2512 | + | |
| 2513 | + | |
| 2514 | + | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
| 2519 | + | |
| 2520 | + | |
| 2521 | + | |
| 2522 | + | |
| 2523 | + | |
| 2524 | + | |
| 2525 | + | |
| 2526 | + | |
| 2527 | + | |
| 2528 | + | |
| 2529 | + | |
2515 | 2530 | | |
2516 | 2531 | | |
2517 | 2532 | | |
2518 | 2533 | | |
2519 | | - | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
| 2538 | + | |
| 2539 | + | |
2520 | 2540 | | |
2521 | 2541 | | |
2522 | 2542 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
| 255 | + | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| |||
0 commit comments