diff --git a/lib/utils.dart b/lib/utils.dart index 41ee7e4d..171629cf 100644 --- a/lib/utils.dart +++ b/lib/utils.dart @@ -42,6 +42,7 @@ extension X on Iterable { extension Y on Stream { /// Easy extension allowing you to filter for files that are photo or video Stream wherePhotoVideo() => whereType().where((e) { + if (p.basename(e.path).startsWith('.')) return false; final mime = lookupMimeType(e.path) ?? ""; return mime.startsWith('image/') || mime.startsWith('video/') ||