parseInputFiles function
Implementation
Future<List<InputFile>> parseInputFiles(
String projectPath, String tempDir) async {
var files = await dirContents(Directory(projectPath), recursive: true);
files =
files.where((file) => FileSystemEntity.isFileSync(file.path)).toList();
return files.map((file) {
return InputFile(
path: posixRelative(file.path, from: projectPath),
absolutePath: file.path,
relativePath: posixRelative(file.path, from: tempDir));
}).toList();
}