FileManager class

File management utility for wallet card operations

Constructors

FileManager()

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

cleanup({Duration? olderThan}) → Future<void>
Clean up old files and directories
cleanupOldFiles(Directory directory, {required Duration maxAge}) → Future<void>
Clean up old files in a directory
createArchive(Directory sourceDir, File outputFile) → Future<File>
Create a zip archive from a directory
createOutputDirectory() → Future<Directory>
Create output directory for generated cards
createOutputFile(String filename) → Future<File>
Create an output file with a unique name if needed
createTempDirectory(String name) → Future<Directory>
Create a temporary directory for card generation
downloadFile(String url, {String? filename}) → Future<File>
Download file from URL
extractArchive(File archiveFile, {String? targetDirName}) → Future<Directory>
Extract archive to a directory
generateRandomFilename({String extension = '.tmp'}) → String
Generate a random filename
generateUniqueFilename(String baseName, String extension) → String
Generate a unique filename with base name and extension
getFileSize(File file) → Future<int>
Get file size in bytes
isValidWalletFile(File file) → bool
Validate file format
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