Amp\File\put

function put(string $path, string $contents): Amp\Promise

Write the contents string to the specified path.

Type Parameter Description Default Value
string $path The file path to which to $contents should be written none
string $contents The data to write to the specified $path none