VMware vRealize Orchestrator Cookbook by Daniel Langenhan

VMware vRealize Orchestrator Cookbook by Daniel Langenhan

Author:Daniel Langenhan [Langenhan, Daniel]
Language: eng
Format: epub, pdf
Publisher: Packt Publishing
Published: 2015-02-27T05:00:00+00:00


directory

String

IN

The name of the file, including its path

Add a scriptable task to the schema and enter the following script://File Constructor var myDir = new File(directory); //is it a Directory if (myDir.isDir){ //create a new File Constructor var newFile = new File(Directory+"/TempFile"); //create an empty file newFile.createFile(); //Show directory System.log(myDir.list()); //Rename the file newFile.renameTo(Directory+"/RenamedFile") //Show directory System.log(myDir.list()); // new constructor as the file name has changed var renamedFile = new File(Directory+"/RenamedFile"); //Delete the File renamedFile.deleteFile(); //Show directory System.log(myDir.list()); }



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.