pub fn WriteFileBytes(
Path: PathBuf,
Content: Vec<u8>,
Create: bool,
Overwrite: bool,
) -> ActionEffect<Arc<dyn FileSystemWriter>, CommonError, ()>Expand description
Creates an effect that, when executed, will write a vector of bytes to a file at the specified path.
It uses the FileSystemWriter capability from the environment to perform
the actual file I/O.
§Parameters
Path: ThePathBufof the file to write to.Content: TheVec<u8>content to be written.Create: Iftrue, the file will be created if it does not exist.Overwrite: Iftrue, an existing file will be overwritten.
§Returns
An ActionEffect that resolves to () on success.