checkIntegrity(callback) {
		var path = this.path();
		if (jetpack.exists(path) != "file") {
			callback(new error.IntegrityMissingError());
		}
		else {
			jsonfile.readFile(path, (err, obj) => {
				if (err) {
					callback(new error.IntegrityCorruptedError());
				}
				else if (checksum(JSON.stringify(obj, null, "  ")) != this.__sha1) {
					callback(new error.IntegrityModifiedError());
				}
				else {
					callback(null);
				}
			});
		}
	}
/**
	 * Check the integrity of the existing asset index
	 *
	 * @param {Function} callback (IntegrityError)
	 */
Check the integrity of the existing asset index
@param {Function} callback (IntegrityError)
Check the integrity of the existing asset index @param { Function } callback ( IntegrityError )
checkIntegrity(callback) {
		var path = this.path();
		if (jetpack.exists(path) != "file") {
			callback(new error.IntegrityMissingError());
		}
		else {
			jsonfile.readFile(path, (err, obj) => {
				if (err) {
					callback(new error.IntegrityCorruptedError());
				}
				else if (checksum(JSON.stringify(obj, null, "  ")) != this.__sha1) {
					callback(new error.IntegrityModifiedError());
				}
				else {
					callback(null);
				}
			});
		}
	}
checkIntegrity ( callback ) { var path = this . path ( ) ; if ( jetpack . exists ( path ) != "file" ) { callback ( new error . IntegrityMissingError ( ) ) ; } else { jsonfile . readFile ( path , ( err , obj ) => { if ( err ) { callback ( new error . IntegrityCorruptedError ( ) ) ; } else if ( checksum ( JSON . stringify ( obj , null , "  " ) ) != this . __sha1 ) { callback ( new error . IntegrityModifiedError ( ) ) ; } else { callback ( null ) ; } } ) ; } }
Check the integrity of the existing asset index
 @param {Function} callback (IntegrityError)
Check the integrity of the existing asset index @param { Function } callback ( IntegrityError )