Klasse FolderHash
java.lang.Object
de.luckymcdev.foundryengine.common.util.FolderHash
Computes SHA-256 hashes of folder contents for change detection.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungstatic StringhashFolder(Path folder) Computes a SHA-256 hash of all files in a folder, sorted by path.static CompletableFuture<String> hashFolderAsync(Path folder) Computes a SHA-256 hash of all files in a folder on a background executor.
-
Konstruktordetails
-
FolderHash
public FolderHash()
-
-
Methodendetails
-
hashFolder
Computes a SHA-256 hash of all files in a folder, sorted by path.- Löst aus:
IOExceptionNoSuchAlgorithmException
-
hashFolderAsync
Computes a SHA-256 hash of all files in a folder on a background executor. The returned future completes exceptionally with aCompletionExceptionwrapping the underlyingIOExceptionorNoSuchAlgorithmException.
-