createFile

fun createFile(    qualifiedName: String,     mimeType: String,     resolver: ModuleRootResolver,     completion: () -> Unit,     failureHandler: (ErrorCode, Throwable?) -> Unit)

Create a file.

Parameters

qualifiedName

The fully-qualified name of the module or resource.

mimeType

The MIME type of the file being created.

resolver

The ModuleRootResolver used to access the target ModuleRoot.

completion

A function to call once the file is successfully created.

failureHandler

A function that accepts a ErrorCode that describes the failure and an optional Throwable.