PackageManager.store

Store a zip file stored at src into a managed location destination

This will extracts the package supplied as (as a zip file) to the destination and sets a version field in the package description. In the future, we should aim not to alter the package description, but this is done for backward compatibility.

Parameters

src NativePath

The path to the zip file containing the package

dest PlacementLocation

At which PlacementLocation the package should be stored

name string

Name of the package being stored

vers Version

Version of the package

Return Value

Type: Package

The Package after it has been loaded.

Throws

If the package cannot be loaded / the zip is corrupted / the package already exists, etc...

Meta