[flutter_tools] pass existsSync through error handling io (#66704)
Crash reporting shows at least one instance of EACCES during an existsSync cache call. Add this to the list of error handling io methods. Did not add the async exists method since we lint against its usage.
This commit is contained in:
@@ -330,6 +330,16 @@ class ErrorHandlingDirectory
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
bool existsSync() {
|
||||
return _runSync<bool>(
|
||||
() => delegate.existsSync(),
|
||||
platform: _platform,
|
||||
failureMessage:
|
||||
'Flutter failed to check for directory existence at "${delegate.path}"',
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() => delegate.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user