PackageInfoRemovePackageZipFileIfLengthOrHashDiffer(String) Method |
Removes the package's zip file if its length or hash does not match the expected values.
Namespace: Altaxo.Serialization.AutoUpdatesAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3618.0 (4.8.3618.0)
Syntaxpublic string? RemovePackageZipFileIfLengthOrHashDiffer(
string storageFolder
)
Parameters
- storageFolder String
- The storage path where the package's zip file is located. Cannot be null.
Return Value
StringThe full path of the removed file if it was deleted; otherwise,
null.
RemarksThis method verifies the integrity of the file at the specified path by checking its length
and hash. If the verification fails, the file is deleted. No exception is thrown if the file cannot be
deleted.
See Also