Expand description
Functionality to validate the contents of a Conda package.
Almost all Conda packages contain a file info/paths.json that describes
all the files the package contains. The validate_package_directory
function validates that a directory containing an extracted Conda package
archive actually contains the files as described by the paths.json file.
Very old Conda packages do not contain a paths.json file. These packages
contain a (deprecated) files file as well as optionally a has_prefix and
some other files. If the paths.json file is missing these deprecated files
are used instead to reconstruct a PathsJson object. See
PathsJson::from_deprecated_package_directory for more information.
Enums§
- Package
Entry Validation Error - An error that indicates that a specific file in a package archive directory seems to be corrupted.
- Package
Validation Error - An error that is returned by
validate_package_directoryif the contents of the directory seems to be corrupted. - Validation
Mode - The mode in which the validation should be performed.
Functions§
- validate_
package_ directory - Determine whether the files in the specified directory match what is
expected according to the
info/paths.jsonfile in the same directory. - validate_
package_ directory_ from_ paths - Determine whether the files in the specified directory match wat is expected
according to the passed in
PathsJson.