areFSEntiesExist function
Check if give File or Directory exists at the give paths
,
if not returns the failed FileSystemEntity path
Implementation
String? areFSEntiesExist(List<String> paths) {
for (final path in paths) {
final fsType = FileSystemEntity.typeSync(path);
if (![FileSystemEntityType.directory, FileSystemEntityType.file]
.contains(fsType)) {
return path;
}
}
return null;
}