ListFilesUseCase

Lists the files directly inside a directory of the client's own private file storage (subdirectories are skipped) — backs the ListFiles event. Fails with DirNotFoundException when the directory doesn't exist. Reachable via get<ListFilesUseCase>().

Constructors

Link copied to clipboard
constructor(repository: MosaicRepository)

Types

Link copied to clipboard
data class Params(val directory: String)

Functions

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