You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Use addActionWarning() in dialog open callback to remove duplication
- Fix HTML entity display in breadcrumb and share link
Literal ampersands (foo&bar) were displayed as foo&bar
- Add global escapeHtml() utility function for consistent HTML escaping
Copy file name to clipboardExpand all lines: README.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,3 +19,25 @@ We recommend using VS Code with the following plugins:
19
19
* Install [DavidAnson.vscode-markdownlint](https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint) and when reasonable, implement its recommendations for markdown code.
20
20
* Install [foxundermoon.shell-format](https://marketplace.visualstudio.com/items?itemName=foxundermoon.shell-format) and [timonwong.shellcheck](https://marketplace.visualstudio.com/items?itemName=timonwong.shellcheck) and when reasonable, implement their recommendations when making changes to bash scripts.
21
21
* Install [esbenp.prettier-vscode](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) and when reasonable, use it for formatting files.
22
+
23
+
## Known Issues / Future Ideas
24
+
25
+
### File Manager - Accurate Total Size Calculation
26
+
27
+
**Current Implementation:**
28
+
The file manager calculates total transfer size by averaging multiple rsync progress measurements. Since rsync truncates percentages (47.9% shows as 47%), this introduces ~2% error per measurement point. We average 5 samples at different progress levels to improve accuracy and show an approximate total (prefixed with `~`).
29
+
30
+
**Proposed Improvement:**
31
+
After collecting initial samples, run `timeout 60 du -sb $source` in the background to get exact byte count:
32
+
- Parse source paths from `/var/tmp/file.manager.active` JSON
33
+
- Start `du` asynchronously once estimation completes
34
+
- Replace estimated size with exact size when `du` finishes
35
+
- Use timeout to prevent hangs on very large directories
36
+
37
+
**Challenge:**
38
+
For move operations using rsync copy-delete, source files get deleted during transfer. Running `du` after the operation starts would return incomplete results. Would need to:
39
+
- Start `du` before rsync starts (adds delay)
40
+
- Or accept that move operations keep using estimation
41
+
- Or detect rsync-rename moves (same filesystem) where source remains until completion
42
+
43
+
**Decision:** Document for future consideration. Current estimation method is reasonable trade-off between accuracy and complexity.
0 commit comments