ModelFileSystemManager class
Unified file system operations for model management
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
-
cleanupFailedDownload(
ModelSpec spec) → Future< void> - Cleans up failed download files for a model specification
-
cleanupOrphanedFiles(
{required List< String> protectedFiles, List<String> ? supportedExtensions, bool enableResumeDetection = false}) → Future<void> - Smart cleanup: removes orphaned files immediately, keeps potential resume files
-
deleteModelFile(
String filename) → Future< void> - Safely deletes a model file
-
ensureDirectoryExists(
String dirPath) → Future< void> - Ensures a directory exists, creating it if necessary
-
getCorrectedPath(
String originalPath, String filename) → String - Corrects Android path from /data/user/0/ to /data/data/ for proper file access
-
getFileSize(
String filePath) → Future< int> - Gets file size in bytes, returns 0 if file doesn't exist
-
getModelFilePath(
String filename) → Future< String> - Gets the full file path for a model file with Android path correction
-
isFileValid(
String filePath, {int minSizeBytes = _defaultMinSizeBytes}) → Future< bool> - Validates if a file exists and meets minimum size requirements
-
validateModelFiles(
ModelSpec spec) → Future< bool> - Validates all files in a model specification