Aller au contenu principal

WriteFilesStep <DirectoryResource>

Writes multiple files to a specified directory in the Playground filesystem.

@hasRunnableExample
@landingPage

/test.php

@example
<code>
{
"step": "writeFiles",
"writeToPath": "/wordpress/wp-content/plugins/my-plugin",
"filesTree": {
"name": "my-plugin",
"files": {
"index.php": "<?php echo '<a>Hello World!</a>'; ?>",
"public": {
"style.css": "a { color: red; }"
}
}
}
}
</code>

Index

Properties

filesTree

filesTree: DirectoryResource

The data to write

step

step: writeFiles

writeToPath

writeToPath: string

The path of the file to write to