Skip to main content

is_squashfs

Function is_squashfs 

Source
pub fn is_squashfs(path: &Path) -> bool
Expand description

Check if file starts with Squashfs magic bytes.

Squashfs filesystems can be either little-endian (hsqs) or big-endian (sqsh). This function checks for both variants.

ยงReturns

true if the file starts with either Squashfs signature, false otherwise or on IO error.