Commit aaed0f0
cli: Add I/O sync to filesystem
A flush is not needed here as `File` utilizes Os memory (afaict) which
will write to the fs once we drop the `File`.
We still a manual `sync_all()` to catch any errors that could arise
writing to the fs that we would miss if we just drop the `File`.
Signed-off-by: Peter Neuroth <[email protected]>1 parent 41370a0 commit aaed0f0
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
0 commit comments