Skip to content

Commit e130e2e

Browse files
committed
Fix: Disable file system watching on ios
1 parent 1045492 commit e130e2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/data/file_manager/file_manager.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ class FileManager {
105105
static Future<void> watchRootDirectory() async {
106106
Directory rootDir = Directory(documentsDirectory);
107107
await rootDir.create(recursive: true);
108+
if (Platform.isIOS) return;
108109
rootDir.watch(recursive: true).listen((FileSystemEvent event) {
109110
final type = event.type == FileSystemEvent.create ||
110111
event.type == FileSystemEvent.modify ||

0 commit comments

Comments
 (0)