/// <summary> Checks that each file in the package is present in the directory. </summary> /// <param name="thisPackage">Package to check</param> /// <param name="matchCheckSums">Flag indicates whether to match checksums</param> /// <returns>TRUE if everything validates, otherwise FALSE </returns> public static bool Validate_Files(SobekCM_Item thisPackage, bool matchCheckSums) { // Build the METS validator and validate the files SobekCM_METS_Validator validator = new SobekCM_METS_Validator(thisPackage); return validator.Check_Files(thisPackage.Source_Directory, matchCheckSums); }
/// <summary> Checks that each file in the package is present in the directory. </summary> /// <param name="matchCheckSums">Flag indicates whether to match checksums</param> /// <returns>TRUE if everything validates, otherwise FALSE </returns> /// <remarks> This sets the Validation_Errors property of this object </remarks> public bool Validate_Files(bool matchCheckSums) { // Build the METS validator and validate the files SobekCM_METS_Validator validator = new SobekCM_METS_Validator(this); bool returnVal = validator.Check_Files(Source_Directory, matchCheckSums); // Save the validation errors validationErrors = returnVal ? String.Empty : validator.ValidationError; return returnVal; }