lib/bagit.php
function validate()
    {
        $errors = array();

        BagIt_validateExists($this->bagitFile, $errors);
        BagIt_validateExists($this->getDataDirectory(), $errors);
        $this->manifest->validate($errors);

        $this->bagErrors = $errors;
        return $this->bagErrors;
    }
function validate()
    {
        $errors = array();

        BagIt_validateExists($this->bagitFile, $errors);
        BagIt_validateExists($this->getDataDirectory(), $errors);
        $this->manifest->validate($errors);

        $this->bagErrors = $errors;
        return $this->bagErrors;
    }
function validate ( ) { $ errors = array ( ) ; BagIt_validateExists ( $ this -> bagitFile , $ errors ) ; BagIt_validateExists ( $ this -> getDataDirectory ( ) , $ errors ) ; $ this -> manifest -> validate ( $ errors ) ; $ this -> bagErrors = $ errors ; return $ this -> bagErrors ; }
Runs the bag validator on the contents of the bag. This verifies the
presence of required iles and folders and verifies the checksum for
each file.

For the results of validation, check isValid() and getBagErrors().

@return array The list of bag errors.
Runs the bag validator on the contents of the bag . This verifies the presence of required iles and folders and verifies the checksum for each file .