VMware Cloud Community
luna5678
Contributor
Contributor

ListFilesInGuest not return all the files.

Hello,

I am calling ListFilesInGuest API which will return 1 or more  files less. FilePath, index, maxResult and matchPattern I list at below(highlighted).

My case is that only several files in the folder(less than 10 files) in the Guest OS, and some of them are not showing with the API.

I made a copy of the file which can't be listed. The API can list the copy of the file rather than the original file. I tried to copy this file to somewhere else and copy back it can be listed out.

I tried rename the original file some time it can be listed out but sometimes can not which is inconsistent.

Anyway it behaves very wired and I can't find the pattern.

Is there a know issue or somebody know how to solve it?

The endpoint I call:

<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soapenv:Body>

  <ListFilesInGuest xmlns="urn:vim25">

  <_this type="GuestFileManager">guestOperationsFileManager</_this>

  <vm type="VirtualMachine">vm-6792</vm>

  <auth xsi:type="NamePasswordAuthentication">

  <interactiveSession xsi:type="xsd:boolean">false</interactiveSession>

  <username>sdworld\administrator</username>

  <password>wsqa</password>

  </auth>

  <filePath>c:\</filePath>

  <index>0</index>

  <maxResults>900</maxResults>

  <matchPattern>.*</matchPattern>

  </ListFilesInGuest>

</soapenv:Body>

</soapenv:Envelope>

Thanks in advance!

Tags (1)
0 Kudos
0 Replies