getFilesDirOrShowError

fun getFilesDirOrShowError(parentDirPath: String?, directoryName: String?): File

Returns directory with provided path (creates if needed). On failure shows toast message.

Return

external directory with provided name (creates if needed)

Parameters

parentDirPath

path to the parent directory

directoryName

name of the directory being created

Throws

in case if IO failure