verifyRecoveryTransfer
Purpose and behavior
Section titled “Purpose and behavior”Check a retained transfer directory: state.json, the three patches, commits.bundle when commits changed and every listed file, then optionally Git restorability and checksums. Failed checks are reported in the result, not thrown; nothing is applied and the author is not authenticated. restorability without repository or an invalid maxBytes rejects with code configuration.
Complete example and detailed rules.
Parameters and properties
Section titled “Parameters and properties”pathRequiredstringRetained transfer directory to verify; a missing directory rejects with code workspace.optionsOptionalRecoveryVerificationOptions | undefinedRestorability and checksum checks, the repository they use and the hashing limit.options.restorabilityOptionalboolean | undefinedClone repository into a temporary directory and check that the commits exist, the bundle unpacks and the three patches apply. Runs only when the structure checks pass; requires repository.options.repositoryOptionalstring | undefinedGit checkout cloned for the restorability check; a shallow or partial clone, or one with alternates, fails that check.options.checksumsOptionalboolean | undefinedHash every file listed in checksums.json with SHA-256 and compare kind, size and digest. Runs only when the earlier checks pass.options.maxBytesOptionalnumber | undefinedMaximum bytes hashed for checksums, default 1073741824 (1 GiB). Exceeding it fails with CHECKSUM_LIMIT and leaves integrity unverified.