Repository navigation
Commit 9057e6f
committed
[tool] Improve global filesystem and symlink robustness on Windows, macOS, and Linux
Wrap missing async and read methods inside ErrorHandlingFileSystem to catch and throw clean ToolExit.
Map POSIX enoent (2), Windows kFileNotFound (2) and kPathNotFound (3) to ToolExit suggesting flutter clean.
Implement exponential backoff retry loop for Windows transient locks (5, 32, 33, 1224).
Make deleteIfExists type-agnostic and robust to broken symlinks.
Fixes flutter#186959
TAG=agy
CONV=c78f1569-c7a1-480f-b5a9-5ef1150b0e801 parent 350e8d7 commit 9057e6f
2 files changed
Lines changed: 816 additions & 123 deletions
File tree
- packages/flutter_tools
- lib/src/base
- test/general.shard/base
0 commit comments