cdfs 0.2.3

Rust implementation of ISO 9660 / ECMA-119
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// SPDX-License-Identifier: (MIT OR Apache-2.0)

use cdfs::{ISO9660Reader, ISODirectory};

pub fn collect_filenames<T: ISO9660Reader>(directory: &ISODirectory<T>) -> Vec<String> {
    directory
        .contents()
        .collect::<Result<Vec<_>, _>>()
        .unwrap()
        .into_iter()
        .map(|item| item.identifier().to_string())
        .collect::<Vec<_>>()
}