vmware/pyvmomi-community-samples

help wanted, getting vim.fault.CannotAccessFile

Offen

#527 geöffnet am 26.11.2018

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (914 Forks)batch import
help wanted

Repository-Metriken

Stars
 (972 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Hi,

getting below exception while creating a directory in windows VM.

Creating directory in vm using : MakeDirectoryInGuest() from vim.vm.guest.FileManager. passing all the attributes to MakeDirectoryInGuest().

traceback : createParentDirectories=True File "C:\Python27\lib\site-packages\pyVmomi\VmomiSupport.py", line 580, in self.f(*(self.args + (obj,) + args), **kwargs) File "C:\Python27\lib\site-packages\pyVmomi\VmomiSupport.py", line 386, in _InvokeMethod return self._stub.InvokeMethod(self, info, args) File "C:\Python27\lib\site-packages\pyVmomi\SoapAdapter.py", line 1370, in InvokeMethod raise obj # pylint: disable-msg=E0702 vim.fault.CannotAccessFile: (vim.fault.CannotAccessFile) { dynamicType = , dynamicProperty = (vmodl.DynamicProperty) [], msg = 'Unable to access file C:\Path\to\target_dir', faultCause = , faultMessage = (vmodl.LocalizableMessage) [], file = 'C:\Path\to\target_dir' }

Contributor Guide