mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
fix copyDirectoryIsolate
This commit is contained in:
@@ -155,9 +155,7 @@ Future<void> copyDirectory(Directory source, Directory destination) async {
|
|||||||
|
|
||||||
Future<void> copyDirectoryIsolate(
|
Future<void> copyDirectoryIsolate(
|
||||||
Directory source, Directory destination) async {
|
Directory source, Directory destination) async {
|
||||||
await Isolate.run(() async {
|
await Isolate.run(() => overrideIO(() => copyDirectory(source, destination)));
|
||||||
await copyDirectory(source, destination);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String findValidDirectoryName(String path, String directory) {
|
String findValidDirectoryName(String path, String directory) {
|
||||||
@@ -358,6 +356,7 @@ class _IOOverrides extends IOOverrides {
|
|||||||
return super.createFile(path);
|
return super.createFile(path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
T overrideIO<T>(T Function() f) {
|
T overrideIO<T>(T Function() f) {
|
||||||
|
Reference in New Issue
Block a user