copyDirectoryListFiles function
Copy a list of files in a directory.
Implementation
Future<List<File>> copyDirectoryListFiles(Directory src,
{CopyOptions? options}) async {
final ioFiles = <File>[];
final fsFiles = await fs.copyDirectoryListFiles(fs_io.wrapIoDirectory(src),
options: options);
for (final fsFile in fsFiles) {
ioFiles.add(fs_io.unwrapIoFile(fsFile));
}
return ioFiles;
}