[flutter_tools] Don't fail copying files if the destination is not writable (#71215)
This commit is contained in:
@@ -289,10 +289,7 @@ class ErrorHandlingFile
|
||||
// Next check if the destination file can be written. If not, bail through
|
||||
// error handling.
|
||||
_runSync<void>(
|
||||
() {
|
||||
resultFile.createSync(recursive: true);
|
||||
resultFile.openSync(mode: FileMode.writeOnly).closeSync();
|
||||
},
|
||||
() => resultFile.createSync(recursive: true),
|
||||
platform: _platform,
|
||||
failureMessage: 'Flutter failed to copy $path to $newPath due to destination location error'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user