ManagedFilesHelper

Utility class for listing / removing files "managed" by Mobile SDK.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun deleteFile(fileOrDir: File): Boolean
Delete fileOrDir or directory (recursively)
Link copied to clipboard
open fun deleteFiles(files: Array<File>): Boolean
Delete fileOrDir or directory (recursively)
Link copied to clipboard
open fun getFiles(ctx: Context, dirName: String, suffix: String, extension: String, excludingSuffix: String): Array<File>
Get files with the given suffix and extension that live under dirName excluding the ones with excludingSuffix.
Link copied to clipboard
open fun getPrefixList(ctx: Context, dirName: String, suffix: String, extension: String, excludingSuffix: String): List<String>
Get "short name" (prefix) of managed files with the given suffix and extension that live under dirName excluding the ones with excludingSuffix.