HuggingFaceDownloader class
Wrapper around background_downloader to handle HuggingFace ETag issues
HuggingFace CDN (Cloudfront) can return different ETags for the same file across different servers/regions, causing resume failures. This wrapper implements smart retry logic to work around ETag mismatches.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
downloadWithProgress(
{required String url, required String targetPath, String? token, int maxRetries = 10}) → Stream< int> - Downloads a file from HuggingFace with smart ETag handling
-
isHuggingFaceUrl(
String url) → bool - Checks if a URL is from HuggingFace CDN