Skip to main content

remove_prefix

Function remove_prefix 

Source
pub async fn remove_prefix(
    prefix: &str,
    target_dir: &Path,
    dry_run: bool,
) -> Result<RemoveReport>
Expand description

Remove embedded-asset files under prefix/ from target_dir.

Only files known to PresetAssets are candidates — user-added files are never touched. Empty subdirectories within the prefix root are cleaned up after file removal. Missing files are recorded in skipped. When dry_run is true, nothing is removed.