• Jonah Williams's avatar
    [flutter_tools] implement safe file copy with multiple fallbacks (#69000) · 2e54c4a8
    Jonah Williams authored
    The tool observes a large number of unhandled exceptions during the file copy portion of flutter create. it is difficult to tell whether the permission issue is caused by the source/destination, or whether it is due to a bug in dart:io.
    
    To work around this, implement a permission check for both the source and dest files. If either fails, the tool can exit with a more specific message.
    
    If these checks pass, then perform the actual copy. If the copy fails, fallback to manually copying the bytes
    2e54c4a8
Name
Last commit
Last update
.github Loading commit data...
bin Loading commit data...
dev Loading commit data...
examples Loading commit data...
packages Loading commit data...
.cirrus.yml Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CODEOWNERS Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
PATENT_GRANT Loading commit data...
README.md Loading commit data...
analysis_options.yaml Loading commit data...
dartdoc_options.yaml Loading commit data...
flutter_console.bat Loading commit data...