getDirsUnderPath function

Future<List<FileSystemEntity>> getDirsUnderPath(
  1. String projectPath
)

Implementation

Future<List<FileSystemEntity>> getDirsUnderPath(String projectPath) async {
  var files = await dirContents(Directory(projectPath), recursive: true);
  files = files
      .where((file) => FileSystemEntity.isDirectorySync(file.path))
      .toList();
  return files;
}