Class FileProducer
File write utility class that reports data written to the manager for uploading.
Namespace: Unity.Simulation
Syntax
public static class FileProducer
Methods
Write(String, Array, Boolean, Boolean)
Write the data to the file system and inform the consumers for uploading it to the cloud.
Declaration
public static bool Write(string path, Array data, bool uploadSynchronously = false, bool isArtifact = true)
Parameters
Type | Name | Description |
---|---|---|
String | path | Full path to the file. |
Array | data | An array of data |
Boolean | uploadSynchronously | boolean indicating if the upload needs to happen synchronously. |
Boolean | isArtifact | A flag indicating if the data being written is an artifact or not. |
Returns
Type | Description |
---|---|
Boolean | boolean indicating if the write was successful |