kvision / pl.treksoft.kvision.cordova / getFile

getFile

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

Get or create a file in a given parent directory.

Parameters

path - target file path

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

exclusive - Fail if the target path file already exists.