Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 144140

Re: Create a VM directory tree in vCenter (with folder exists check)

$
0
0

Hi,

thats also a nice creative idea. Now it's only one array left, but the structure of the array is not really intuitive. Better than my example but still not perfect.

What we need is a datastructure like a hashtable, that always points to the properties object. I did't realize yesterday, but the solution can be simple:

Put just all folders in one single properties object, the name as key and the folder object as value. This single properties object will replace your array.

Use the properties.keys attribute to get an array of all keys (means the names here) for the existence check, and properties.get() to get the folder object for a specific name.

Cheers

Joerg

 

 

Von Samsung Mobile gesendet


Viewing all articles
Browse latest Browse all 144140

Trending Articles



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