createRarArchive method
Create a RAR archive from files or directories.
Note: RAR creation is not supported on most platforms due to licensing restrictions. This method exists for API completeness but will typically return an error indicating the feature is unsupported.
outputPath - Path where the RAR file will be created
sourcePaths - List of file/directory paths to include in the archive
password - Optional password to encrypt the RAR file
compressionLevel - Optional compression level (0-9)
Returns a map with:
- 'success': bool - Whether the creation was successful
- 'message': String - Status message or error description
Implementation
Future<Map<String, dynamic>> createRarArchive({
required String outputPath,
required List<String> sourcePaths,
String? password,
int compressionLevel = 5,
}) {
throw UnimplementedError('createRarArchive() has not been implemented.');
}