查找数据存储的完整文件夹列表

Finding full folders list of a datastore

我正在尝试获取 VMWARE 数据存储的整个文件夹名称列表(例如 folder1/folder2/datastore1)

为 VM 找到了一些代码:

$vmtmp = Vim::find_entity_view(view_type => "VirtualMachine", filter => { name => $vm->name });
$path = Util::get_inventory_path($vmtmp ,Vim::get_vim());

但 find_entity_view 函数不管理数据存储数据类型。

获得此列表的任何线索(我是 vmware 的 perl sdk 新手,对文档有点困惑)?

find_entity_view in Vim

view_type => "Datastore"