Skip to content
DocsTry Aspire
DocsTry

ContainerFileSystemCallbackContext.createFile

Method
📦 Aspire.Hosting v13.5.0
interface ContainerFileSystemCallbackContext {
// ... omitted for brevity
createFile(
name: string,
contents?: string,
sourcePath?: string,
owner?: number,
group?: number,
mode?: number,
continueOnError?: boolean): ContainerFileSystemItem;
}

Signature

methodcreateFile
Creates a container file entry with inline contents or a host source path.
createFile(
name: string,
contents?: string,
sourcePath?: string,
owner?: number,
group?: number,
mode?: number,
continueOnError?: boolean): ContainerFileSystemItem
namestring
contentsstringoptional
sourcePathstringoptional
ownernumberoptional
groupnumberoptional
modenumberoptional
continueOnErrorbooleanoptional
ContainerFileSystemItem

Defined on

This method is defined on the following type: