withContainerFilesCallback
Method
interface ContainerResource { // ... omitted for brevity withContainerFilesCallback( destinationPath: string, callback: callback, options?: ContainerFilesOptions): ContainerResource;}Signature
method
withContainerFilesCallback builderCreates or updates files and/or folders at the destination path in the container using entries produced by a callback.
withContainerFilesCallback(destinationPath: string, callback: (arg1: ContainerFileSystemCallbackContext, arg2: cancellationToken) => Promise<ContainerFileSystemItem[]>, options?: ContainerFilesOptions): ContainerResourceParameters
destinationPath stringThe destination absolute path in the container.callback(arg1: ContainerFileSystemCallbackContext, arg2: cancellationToken) => Promise<ContainerFileSystemItem[]> A callback that returns the file system entries to create or update. Use the factory methods on `ContainerFileSystemCallbackContext` (createFile, createDirectory, createCertificateFile) to build the entries.optionsContainerFilesOptions optionalOptions for the created or updated file system entries.Returns
ContainerResource Applies to
This method applies to the following types: