DeleteFilesUseCase

Deletes files from the client's own private file storage — backs the DeleteFiles event. Every file is attempted even after one fails; if any failed, the result is a failure carrying the first Throwable, with the others attached as suppressed. Reachable via get<DeleteFilesUseCase>().

Constructors

Link copied to clipboard
constructor(repository: MosaicRepository)

Types

Link copied to clipboard
data class Params(val fileNames: List<String>)

Functions

Link copied to clipboard
open suspend override fun execute(params: DeleteFilesUseCase.Params): Result<Unit>
Link copied to clipboard
suspend operator fun invoke(params: DeleteFilesUseCase.Params): Result<Unit>