kvision / pl.treksoft.kvision.cordova / getDirectory

getDirectory

suspend fun DirectoryEntry.getDirectory(path: String, create: Boolean = true, exclusive: Boolean = false): Result<DirectoryEntry, FileException>

Get or create a directory in a given parent directory.

Parameters

path - target directory path

create - Used to indicate that the user wants to create a directory if it was not previously there.

exclusive - Fail if the target path directory already exists.