bool anyFolderExists(List<String> foldersPaths) { for (String folderPath in foldersPaths) { if (Directory(folderPath).existsSync()) { return true; } } return false; }