Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Filewriter Overwrite Option?

$
0
0

I'm using FileWriter (within a flow) to write metadata to a file that will be read via a different flow. Plenty of documention is out there for how to use FileWriter to write to a file, https://communities.vmware.com/thread/421819

but this appends data to a file if the file already exists.

 

I'd like to overwrite the file.

 

I do not wish to write each successive write to a uniquely named file (e.g., date added to name) as this will create issues for the subsequent flow that is expecting a specific filename/location as its source.

 

I see references to javascript filewrite that indicate a second boolean is availalbe ( FileWrite(outputFile, boolean) ) wherein the default (value is is to overwrite and a 'false' value will append, but this doesn't seem to be the case with our vCO use. I've tried passing booleans as a second parameter and they have no net effect.

 

I'd consider using vCO to issue a command to 'delete' the file before writing, however, from what I've read (not sure if this applies to vCO) there are concerns with using javascript to delete filesystem files.

 

Thoughts?



Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>