{"action":"opened","issue":{"url":"https://api.github.com/repos/vmware/pyvmomi/issues/221","labels_url":"https://api.github.com/repos/vmware/pyvmomi/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/vmware/pyvmomi/issues/221/comments","events_url":"https://api.github.com/repos/vmware/pyvmomi/issues/221/events","html_url":"https://github.com/vmware/pyvmomi/issues/221","id":59236982,"number":221,"title":"Get Folder in which VM resides","user":{"login":"retooth","id":1057129,"avatar_url":"https://avatars.githubusercontent.com/u/1057129?v=3","gravatar_id":"","url":"https://api.github.com/users/retooth","html_url":"https://github.com/retooth","followers_url":"https://api.github.com/users/retooth/followers","following_url":"https://api.github.com/users/retooth/following{/other_user}","gists_url":"https://api.github.com/users/retooth/gists{/gist_id}","starred_url":"https://api.github.com/users/retooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retooth/subscriptions","organizations_url":"https://api.github.com/users/retooth/orgs","repos_url":"https://api.github.com/users/retooth/repos","events_url":"https://api.github.com/users/retooth/events{/privacy}","received_events_url":"https://api.github.com/users/retooth/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-27T13:38:21Z","updated_at":"2015-02-27T13:38:21Z","closed_at":null,"body":"Hi,\r\n\r\ni'm looking for a way to find the folder in which a VM resides. Something like:\r\n\r\n```python\r\nvirtual_machine = si.content.searchIndex.FindByUuid(None, \"uuid-string\", True, True)\r\nfolder = virtual_machine.ParentFolder\r\n```\r\n\r\nDoes pyVmomi offer a method like this?"}}