[][src]Function linux_mount_options::detect

pub fn detect<P: AsRef<Path>>(target_dir: P) -> Result<MountInfo>

Parsing /proc/mounts to build MountInfo.

Make sure the folder exists with std::fs::create_dir_all(target_dir)?;