diff --git a/lib/use_case/scan_dir.dart b/lib/use_case/scan_dir.dart index b2b00e3e..3c0e87bd 100644 --- a/lib/use_case/scan_dir.dart +++ b/lib/use_case/scan_dir.dart @@ -53,12 +53,8 @@ class ScanDir { /// Return if this dir should be ignored in a scan op based on files under /// this dir - static bool _shouldScanIgnoreDir(Iterable files) { - return files.any((element) { - final basename = element.filename; - return basename == ".nomedia" || basename == ".noimage"; - }); - } + static bool _shouldScanIgnoreDir(Iterable files) => + files.any((f) => file_util.isNoMediaMarker(f)); final FileRepo fileRepo;