Aller au contenu principal

writeFiles

Callable

  • writeFiles(php: UniversalPHP, root: string, newFiles: FileTree, options?: WriteFilesOptions): Promise<void>

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

    @example
    await writeFiles(php, '/test', {
    'file.txt': 'file',
    'sub/file.txt': 'file',
    'sub1/sub2/file.txt': 'file',
    });

    Parameters

    Returns Promise<void>