getResultsInFullPath method
Searches the directory for all files matching patterns and returns their full paths.
directoryPath - The root directory to search
Implementation
Iterable<String> getResultsInFullPath(String directoryPath) {
const fs = LocalFileSystem();
final dir = fs.directory(directoryPath);
if (!dir.existsSync()) {
return const [];
}
final directoryInfo = DirectoryInfoWrapper(dir);
final result = execute(directoryInfo);
return result.files.map((match) => p.join(directoryPath, match.path));
}