getFileWithCallbacks

fun getFileWithCallbacks(path: String? = definedExternally, options: FileSystemFlags = definedExternally, successCallback: FileSystemEntryCallback = definedExternally, errorCallback: ErrorCallback = definedExternally)(source)

The FileSystemDirectoryEntry interface's method getFile() returns a FileSystemFileEntry object corresponding to a file contained somewhere within the directory subtree rooted at the directory on which it's called.

MDN Reference