pub fn add(
source: &Path,
project: &Path,
dir: &str,
) -> Result<Installed, String>Expand description
Install source into project/dir.
The whole bundle is read and checked before the first byte is written, so a bad bundle leaves the destination untouched. A failed write rolls back the files this call created.