SimplifiedFileManager class
File manager for RunAnywhere SDK Matches iOS SimplifiedFileManager from Infrastructure/FileManagement/Services/SimplifiedFileManager.swift
Directory Structure:
Documents/RunAnywhere/
Models/
{framework}/ # e.g., "onnx", "llamacpp"
{modelId}/ # e.g., "sherpa-onnx-whisper-tiny.en"
[model files]
Cache/
Temp/
Downloads/
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
-
calculateModelsSize(
) → Future< int> - Calculate total size of all models
-
clearCache(
) → Future< void> - Clear all cache
-
clearTemp(
) → Future< void> - Clear all temporary files
-
deleteFile(
String filePath) → Future< void> - Delete a file
-
deleteModelFolder(
{required String modelId, required String framework}) → Future< void> - Delete a model folder
-
fileExists(
String filePath) → Future< bool> - Check if a file exists
-
getCacheDirectory(
) → Future< String> - Get the cache directory
-
getDeviceStorageInfo(
) → DeviceStorageInfo - Get device storage info
-
getDownloadsDirectory(
) → Future< String> - Get the downloads directory
-
getFileSize(
String filePath) → Future< int> - Get file size in bytes
-
getModelFolder(
{required String modelId, required String framework}) → Future< String> - Get the model folder path, creating it if necessary
-
getModelFolderPath(
{required String modelId, required String framework}) → String - Get the model folder path without creating
-
getModelsDirectory(
) → Future< String> - Get the models root directory
-
getTempDirectory(
) → Future< String> - Get the temp directory
-
initialize(
) → Future< void> - Initialize the file manager
-
modelFolderExists(
{required String modelId, required String framework}) → bool - Check if model folder exists
-
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