pub fn detect_filesystem<R: Read + Seek>(source: &mut R) -> Result<FsType>Expand description
Auto-detect filesystem type from a Read+Seek source.
Checks magic numbers for ext4, NTFS, exFAT, HFS+, APFS, ISO9660, the EWF and
VMDK containers, and the zip/7z/gzip archive formats. Returns FsType::Unknown
if no known signature matches. The seek position is reset to 0 after detection.