sanitizeHfDirName function
A filesystem-safe, single-segment directory name for a directory model
(ORT-GenAI) installed from the Hugging Face repo repo, optionally from its
execution-provider subfolder variant.
Throws ArgumentError when the result would be empty or dot-only. Same contract as the resolver-facing helper it wraps.
Implementation
String sanitizeHfDirName(String repo, {String? variant}) =>
FileNameUtils.sanitizeHfDirName(repo, variant: variant);