Module fs

Module fs 

Source
Expand description

Filesystem helpers shared across xtask modules.

Functionsยง

copy_dir_all
Recursively copies a directory tree from src to dst.
create_tarball
Creates a .tar.gz archive at dest from entries inside base_dir.
extract_tarball
Extracts a .tar.gz archive into dest_dir.
extract_tarball_paths
Extracts only entries from a .tar.gz archive whose paths start with one of the given prefixes, placing them under dest_dir.
extract_tarball_strip_one
Extracts a .tar.gz archive, stripping the first path component.
extract_zip_paths
Extracts only entries from a .zip archive whose paths start with one of the given prefixes, placing them under dest_dir.